aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-08-24 18:51:26 +0200
committerMartin Odersky <odersky@gmail.com>2014-08-24 22:32:32 +0200
commitb56a743edf1fe21ff1f9f070d17e4a23930e59bd (patch)
tree1da465c9bfaabade7017efb2c70078f4c3fc0780 /test/dotc/tests.scala
parentbd8ff1720396bb61d0ef5fede8eb956df663faa5 (diff)
downloaddotty-b56a743edf1fe21ff1f9f070d17e4a23930e59bd.tar.gz
dotty-b56a743edf1fe21ff1f9f070d17e4a23930e59bd.tar.bz2
dotty-b56a743edf1fe21ff1f9f070d17e4a23930e59bd.zip
Special context for self constructor args
Arguments to this(...) calls need a special contet, similar to - but different from - the supercall context.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 183e318eb..387bab97f 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -17,7 +17,7 @@ class tests extends CompilerTest {
"-Ycheck:literalize"
)
- val twice = List("#runs", "2", "-YnoDoubleBindings")
+ val twice = List("#runs", "2", "-YnoDoubleBindings"/*, "-Ystop-before:terminal"*/)
val doErase = List("-Ystop-before:terminal")
val posDir = "./tests/pos/"
@@ -76,6 +76,7 @@ class tests extends CompilerTest {
defaultOptions = noCheckOptions)
// -Ycheck fails because there are structural types involving higher-kinded types.
// these are illegal, but are tested only later.
+ @Test def neg_t1131_structural = compileFile(negDir, "t1131", xerrors = 1)
@Test def neg_zoo = compileFile(negDir, "zoo", xerrors = 1)
@Test def neg_t1192_legalPrefix = compileFile(negDir, "t1192", xerrors = 1)
@Test def neg_tailcall_t1672b = compileFile(negDir, "tailcall/t1672b", xerrors = 6)
@@ -89,6 +90,7 @@ class tests extends CompilerTest {
@Test def neg_t1843_variances = compileFile(negDir, "t1843-variances", xerrors = 1)
@Test def neg_t2994 = compileFile(negDir, "t2994", xerrors = 2)
@Test def neg_variances = compileFile(negDir, "variances", xerrors = 2)
+ @Test def neg_badAuxConstr = compileFile(negDir, "badAuxConstr", xerrors = 2)
@Test def dotc = compileDir(dotcDir + "tools/dotc", twice)
@Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast", twice)