From 8a9e89afffb501ed7b312c21aa5e9981cd4e2b23 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 13 Dec 2015 15:36:04 +0100 Subject: Allow deep subtype for sets and related code in dotty/transform. The change in subtyping led to a deep subtype recursion for sets.scala. It seems legit, so the -Yno-deep-subtypes check is disabled. --- tests/pos-special/sets.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos-special/sets.scala (limited to 'tests/pos-special') diff --git a/tests/pos-special/sets.scala b/tests/pos-special/sets.scala new file mode 100644 index 000000000..577d709f5 --- /dev/null +++ b/tests/pos-special/sets.scala @@ -0,0 +1,11 @@ +object Test { + + val subPatBinders = List[Symbol]() + + def extraStoredBinders: Set[Symbol] = ??? + + val storedBinders: Set[Symbol] = + (if (true) subPatBinders.toSet else Set.empty) ++ extraStoredBinders// -- ignoredSubPatBinders + + +} -- cgit v1.2.3