From 739f8ea2c3b39f81f54bfea4b618770d7aa1a1c6 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 24 Aug 2015 13:12:02 +0200 Subject: Make it a syntactic criterion whether a literal is a legal type Introduce a new non-terminal "SimpleLiteral". Only SimpleLiterals can be types. --- test/dotc/tests.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/dotc/tests.scala') diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 8f8b1d04a..b5af92d64 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -146,7 +146,7 @@ class tests extends CompilerTest { @Test def neg_instantiateAbstract = compileFile(negDir, "instantiateAbstract", xerrors = 8) @Test def neg_selfInheritance = compileFile(negDir, "selfInheritance", xerrors = 6) @Test def neg_selfreq = compileFile(negDir, "selfreq", xerrors = 4) - @Test def neg_singletons = compileFile(negDir, "singletons", xerrors = 4) + @Test def neg_singletons = compileFile(negDir, "singletons", xerrors = 5) @Test def neg_shadowedImplicits = compileFile(negDir, "arrayclone-new", xerrors = 2) @Test def neg_traitParamsTyper = compileFile(negDir, "traitParamsTyper", xerrors = 5) @Test def neg_traitParamsMixin = compileFile(negDir, "traitParamsMixin", xerrors = 2) -- cgit v1.2.3