diff options
author | Miles Sabin <miles@milessabin.com> | 2010-01-18 12:20:57 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2010-01-18 12:20:57 +0000 |
commit | 0d5d440a68342296eed0474cf697f0c2cb085387 (patch) | |
tree | d4a1a20f81c220c7870b95b9d8d6882375821bd2 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | 853b1817beb5f8b55ecbd1ffdf0e226fc699acae (diff) | |
download | scala-0d5d440a68342296eed0474cf697f0c2cb085387.tar.gz scala-0d5d440a68342296eed0474cf697f0c2cb085387.tar.bz2 scala-0d5d440a68342296eed0474cf697f0c2cb085387.zip |
Fix and test case for #2891. No review necessary.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 |
1 files changed, 1 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 b86356ba94..70d8c5d23f 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1237,7 +1237,7 @@ self => val npos = r2p(nstart, nstart, in.lastOffset) val tstart = in.offset val (parents, argss, self, stats) = template(false) - val cpos = r2p(tstart, tstart, in.lastOffset) + val cpos = r2p(tstart, tstart, in.lastOffset max tstart) makeNew(parents, self, stats, argss, npos, cpos) case _ => syntaxErrorOrIncomplete("illegal start of simple expression", true) |