diff options
author | Martin Odersky <odersky@gmail.com> | 2014-04-29 17:14:27 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-05-08 21:51:47 +0200 |
commit | ba2913bdb52bf1a42bd831e9429e044ee8d3c42f (patch) | |
tree | 45a9b14579632c2b1b254be08b9feac83f492945 /test/dotc/tests.scala | |
parent | 90aa3ba1df70fea42b4a1cafe6551e7c3204f012 (diff) | |
download | dotty-ba2913bdb52bf1a42bd831e9429e044ee8d3c42f.tar.gz dotty-ba2913bdb52bf1a42bd831e9429e044ee8d3c42f.tar.bz2 dotty-ba2913bdb52bf1a42bd831e9429e044ee8d3c42f.zip |
Changes to test framework and tests
defaultOptions is now an implicit parameter, which means it can be overridden
on a call-by-call basis.
Added -Ycheck:front to verify that typed trees typecheck again with same types.
The option is disabled for one of the structural tests.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r-- | test/dotc/tests.scala | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 4234a6541..436ca876f 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -5,15 +5,18 @@ import test._ class tests extends CompilerTest { - override val defaultOptions = - List( + val noCheckOptions = List( // "-verbose", // "-Ylog:frontend", // "-Xprompt", // "-explaintypes", // "-Yshow-suppressed-errors", - "-pagewidth", "160" //, "-Ycheck:front" , "-Ystop-before:terminal" - ) + "-pagewidth", "160") + + implicit val defaultOptions = noCheckOptions ++ List( + "-Ycheck:front"//, "-Ystop-before:terminal" + ) + val twice = List("#runs", "2", "-YnoDoubleBindings") val doErase = List("-Ystop-before:terminal") @@ -68,7 +71,10 @@ class tests extends CompilerTest { @Test def neg_i50_volatile = compileFile(negDir, "i50-volatile", xerrors = 4) @Test def neg_t0273_doubledefs = compileFile(negDir, "t0273", xerrors = 1) @Test def neg_t0586_structural = compileFile(negDir, "t0586", xerrors = 1) - @Test def neg_t0625_structural = compileFile(negDir, "t0625", xerrors = 1) + @Test def neg_t0625_structural = compileFile(negDir, "t0625", xerrors = 1)( + defaultOptions = noCheckOptions) + // -Ycheck fails because there are structural types involving higher-kinded types. + // these are illegal, but are tested only later. @Test def neg_t0654_polyalias = compileFile(negDir, "t0654", xerrors = 2) @Test def neg_t1192_legalPrefix = compileFile(negDir, "t1192", xerrors = 1) @Test def neg_tailcall_t1672b = compileFile(negDir, "tailcall/t1672b", xerrors = 6) |