diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-31 17:04:02 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-09 09:43:06 +0100 |
commit | 0480cb2a5902b733145f54fdc238aba7b831396b (patch) | |
tree | 1ac631aae15344440b51562d35d09ce4032e13d0 /test/dotc/tests.scala | |
parent | 5fd2028931874291b3cf1b7efef4fed7119d9316 (diff) | |
download | dotty-0480cb2a5902b733145f54fdc238aba7b831396b.tar.gz dotty-0480cb2a5902b733145f54fdc238aba7b831396b.tar.bz2 dotty-0480cb2a5902b733145f54fdc238aba7b831396b.zip |
Only final lazy vals can be paths.
Reason: They might be overridden by other lazy vals
that are not realizable, and therefore risk creating
bad bounds.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r-- | test/dotc/tests.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 1c62ed96d..689f92b04 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -162,7 +162,8 @@ class tests extends CompilerTest { @Test def neg_i803 = compileFile(negDir, "i803", xerrors = 2) @Test def neg_i866 = compileFile(negDir, "i866", xerrors = 2) @Test def neg_i974 = compileFile(negDir, "i974", xerrors = 2) - @Test def neg_i1050 = compileFile(negDir, "i1050", xerrors = 3) + @Test def neg_i1050 = compileFile(negDir, "i1050", xerrors = 5) + @Test def neg_i1050a = compileFile(negDir, "i1050a", xerrors = 2) @Test def neg_moduleSubtyping = compileFile(negDir, "moduleSubtyping", xerrors = 4) @Test def neg_escapingRefs = compileFile(negDir, "escapingRefs", xerrors = 2) @Test def neg_instantiateAbstract = compileFile(negDir, "instantiateAbstract", xerrors = 8) |