diff options
author | Martin Odersky <odersky@gmail.com> | 2015-08-24 13:12:02 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-08-24 13:12:02 +0200 |
commit | 739f8ea2c3b39f81f54bfea4b618770d7aa1a1c6 (patch) | |
tree | 926b1416edd0be6ffbbb14260259f6d1fe9fe1a9 /test/dotc | |
parent | e850a99f16004a702b5fa63736ac215fc388051b (diff) | |
download | dotty-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')
-rw-r--r-- | test/dotc/tests.scala | 2 |
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) |