diff options
author | Paul Phillips <paulp@improving.org> | 2009-12-01 00:03:54 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-12-01 00:03:54 +0000 |
commit | 43c13143331d00ea78369ce41caa29e46752a69d (patch) | |
tree | 6bd93eb95439e1446c029247a3358d44a1c17acb /src | |
parent | 9fe1f1503ffb3f4c83cbf61459e7021e1780907e (diff) | |
download | scala-43c13143331d00ea78369ce41caa29e46752a69d.tar.gz scala-43c13143331d00ea78369ce41caa29e46752a69d.tar.bz2 scala-43c13143331d00ea78369ce41caa29e46752a69d.zip |
Fix and test case for #2378.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index ccb46c0500..3e4400586f 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1167,7 +1167,8 @@ self => atPos(in.offset) { val name = unaryOp() in.token match { - case INTLIT | LONGLIT | FLOATLIT | DOUBLELIT => literal(true) + // Don't include double and float here else we lose -0.0 + case INTLIT | LONGLIT => literal(true) case _ => Select(stripParens(simpleExpr()), name) } } |