From 0480cb2a5902b733145f54fdc238aba7b831396b Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 31 Jan 2016 17:04:02 +0100 Subject: 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. --- test/dotc/tests.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/dotc/tests.scala') 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) -- cgit v1.2.3