diff options
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r-- | test/dotc/tests.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 4383949dc..596c4a27e 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -37,6 +37,7 @@ class tests extends CompilerTest { val allowDeepSubtypes = defaultOptions diff List("-Yno-deep-subtypes") val allowDoubleBindings = defaultOptions diff List("-Yno-double-bindings") + val scala2mode = List("-language:Scala2") val testsDir = "./tests/" val posDir = testsDir + "pos/" @@ -92,7 +93,6 @@ class tests extends CompilerTest { @Test def pos_valueclasses = compileFiles(posDir + "valueclasses/", twice) @Test def pos_nullarify = compileFile(posDir, "nullarify", args = "-Ycheck:nullarify" :: Nil) @Test def pos_subtyping = compileFile(posDir, "subtyping", twice) - @Test def pos_t2613 = compileFile(posSpecialDir, "t2613")(allowDeepSubtypes) @Test def pos_packageObj = compileFile(posDir, "i0239", twice) @Test def pos_anonClassSubtyping = compileFile(posDir, "anonClassSubtyping", twice) @Test def pos_extmethods = compileFile(posDir, "extmethods", twice) @@ -100,6 +100,9 @@ class tests extends CompilerTest { @Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster + @Test def pos_t2613 = compileFile(posSpecialDir, "t2613")(allowDeepSubtypes) + @Test def pos_i871 = compileFile(posSpecialDir, "i871", scala2mode) + @Test def new_all = compileFiles(newDir, twice) @Test def neg_abstractOverride() = compileFile(negDir, "abstract-override", xerrors = 2) @@ -134,6 +137,7 @@ class tests extends CompilerTest { @Test def neg_t2994 = compileFile(negDir, "t2994", xerrors = 2) @Test def neg_subtyping = compileFile(negDir, "subtyping", xerrors = 5) @Test def neg_variances = compileFile(negDir, "variances", xerrors = 2) + @Test def neg_i871_missingReturnType = compileFile(negDir, "i871", xerrors = 2) @Test def neg_badAuxConstr = compileFile(negDir, "badAuxConstr", xerrors = 2) @Test def neg_typetest = compileFile(negDir, "typetest", xerrors = 1) @Test def neg_t1569_failedAvoid = compileFile(negDir, "t1569-failedAvoid", xerrors = 1) |