aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-special
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-12-13 15:36:04 +0100
committerMartin Odersky <odersky@gmail.com>2015-12-13 15:36:04 +0100
commit8a9e89afffb501ed7b312c21aa5e9981cd4e2b23 (patch)
tree9140e4a00ab9ba60b7f70e242b7a22c82fe91265 /tests/pos-special
parent95098ba498b5317002395008376a565550189673 (diff)
downloaddotty-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')
-rw-r--r--tests/pos-special/sets.scala11
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
+
+
+}