diff options
author | Martin Odersky <odersky@gmail.com> | 2015-12-13 15:36:04 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-12-13 15:36:04 +0100 |
commit | 8a9e89afffb501ed7b312c21aa5e9981cd4e2b23 (patch) | |
tree | 9140e4a00ab9ba60b7f70e242b7a22c82fe91265 /tests/pos-special/sets.scala | |
parent | 95098ba498b5317002395008376a565550189673 (diff) | |
download | dotty-8a9e89afffb501ed7b312c21aa5e9981cd4e2b23.tar.gz dotty-8a9e89afffb501ed7b312c21aa5e9981cd4e2b23.tar.bz2 dotty-8a9e89afffb501ed7b312c21aa5e9981cd4e2b23.zip |
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.
Diffstat (limited to 'tests/pos-special/sets.scala')
-rw-r--r-- | tests/pos-special/sets.scala | 11 |
1 files changed, 11 insertions, 0 deletions
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 + + +} |