diff options
author | Martin Odersky <odersky@gmail.com> | 2015-12-30 16:12:38 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-01-18 16:49:16 +0100 |
commit | 3c29bbe7953f31f35dd404577cd04b4de95f74bb (patch) | |
tree | 3b7bb3d592856571047e82a5949e36f368d88dff /test/dotc | |
parent | 73815420c3ee22f8b0209bc9d915dad8b1559b9a (diff) | |
download | dotty-3c29bbe7953f31f35dd404577cd04b4de95f74bb.tar.gz dotty-3c29bbe7953f31f35dd404577cd04b4de95f74bb.tar.bz2 dotty-3c29bbe7953f31f35dd404577cd04b4de95f74bb.zip |
Adapt and add tests
New test that exhibited the problem is ski.scala. Previously
this did not fail with a bounds violation.
Diffstat (limited to 'test/dotc')
-rw-r--r-- | test/dotc/tests.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 354bc62d2..bc212bdca 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -108,8 +108,8 @@ class tests extends CompilerTest { @Test def neg_abstractOverride() = compileFile(negDir, "abstract-override", xerrors = 2) @Test def neg_blockescapes() = compileFile(negDir, "blockescapesNeg", xerrors = 1) - @Test def neg_bounds() = compileFile(negDir, "bounds", xerrors = 2) - @Test def neg_typedapply() = compileFile(negDir, "typedapply", xerrors = 4) + @Test def neg_bounds() = compileFile(negDir, "bounds", xerrors = 3) + @Test def neg_typedapply() = compileFile(negDir, "typedapply", xerrors = 3) @Test def neg_typedIdents() = compileDir(negDir, "typedIdents", xerrors = 2) @Test def neg_assignments() = compileFile(negDir, "assignments", xerrors = 3) @Test def neg_typers() = compileFile(negDir, "typers", xerrors = 14)(allowDoubleBindings) @@ -167,6 +167,7 @@ class tests extends CompilerTest { @Test def neg_selfreq = compileFile(negDir, "selfreq", xerrors = 2) @Test def neg_singletons = compileFile(negDir, "singletons", xerrors = 8) @Test def neg_shadowedImplicits = compileFile(negDir, "arrayclone-new", xerrors = 2) + @Test def neg_ski = compileFile(negDir, "ski", xerrors = 2) @Test def neg_traitParamsTyper = compileFile(negDir, "traitParamsTyper", xerrors = 5) @Test def neg_traitParamsMixin = compileFile(negDir, "traitParamsMixin", xerrors = 2) @Test def neg_firstError = compileFile(negDir, "firstError", xerrors = 3) @@ -185,7 +186,7 @@ class tests extends CompilerTest { .filter(_.nonEmpty) .toList - @Test def compileStdLib = compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode) + @Test def compileStdLib = compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode)(allowDeepSubtypes) @Test def compileMixed = compileLine( """tests/pos/B.scala |./scala-scala/src/library/scala/collection/immutable/Seq.scala |