Skip to content

Commit 9826103

Browse files
committed
Retain simpleLiteral
1 parent 895398d commit 9826103

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,9 +1342,7 @@ object Parsers {
13421342
*/
13431343
def simpleLiteral(): Tree =
13441344
if isIdent(nme.raw.MINUS) then
1345-
val start = in.offset
1346-
in.nextToken()
1347-
literal(start, inTypeOrSingleton = true)
1345+
literal(start = in.skipToken(), inTypeOrSingleton = true)
13481346
else
13491347
literal(inTypeOrSingleton = true)
13501348

0 commit comments

Comments
 (0)