aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
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 /test/dotc/tests.scala
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 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 5993f4064..9662d09d6 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -100,6 +100,7 @@ class tests extends CompilerTest {
@Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster
+ @Test def pos_sets = compileFile(posSpecialDir, "sets")(allowDeepSubtypes)
@Test def pos_t2613 = compileFile(posSpecialDir, "t2613")(allowDeepSubtypes)
@Test def pos_i871 = compileFile(posSpecialDir, "i871", scala2mode)
@Test def pos_variancesConstr = compileFile(posSpecialDir, "variances-constr", scala2mode)
@@ -182,7 +183,7 @@ class tests extends CompilerTest {
.toList
@Test def compileStdLib = compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode)
- @Test def dotty = compileDir(dottyDir, ".", "-deep" :: "-Ycheck-reentrant" :: allowDeepSubtypes) // note the -deep argument
+ @Test def dotty = compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant"))(allowDeepSubtypes) // note the -deep argument
@Test def dotc_ast = compileDir(dotcDir, "ast")
@Test def dotc_config = compileDir(dotcDir, "config")
@@ -191,7 +192,7 @@ class tests extends CompilerTest {
// This directory doesn't exist anymore
// @Test def dotc_core_pickling = compileDir(coreDir, "pickling")(allowDeepSubtypes)// twice omitted to make tests run faster
- @Test def dotc_transform = compileDir(dotcDir, "transform")// twice omitted to make tests run faster
+ @Test def dotc_transform = compileDir(dotcDir, "transform")(allowDeepSubtypes)// twice omitted to make tests run faster
@Test def dotc_parsing = compileDir(dotcDir, "parsing") // twice omitted to make tests run faster