aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-08-24 13:12:02 +0200
committerMartin Odersky <odersky@gmail.com>2015-08-24 13:12:02 +0200
commit739f8ea2c3b39f81f54bfea4b618770d7aa1a1c6 (patch)
tree926b1416edd0be6ffbbb14260259f6d1fe9fe1a9 /test/dotc/tests.scala
parente850a99f16004a702b5fa63736ac215fc388051b (diff)
downloaddotty-739f8ea2c3b39f81f54bfea4b618770d7aa1a1c6.tar.gz
dotty-739f8ea2c3b39f81f54bfea4b618770d7aa1a1c6.tar.bz2
dotty-739f8ea2c3b39f81f54bfea4b618770d7aa1a1c6.zip
Make it a syntactic criterion whether a literal is a legal type
Introduce a new non-terminal "SimpleLiteral". Only SimpleLiterals can be types.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala2
1 files changed, 1 insertions, 1 deletions
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)