Skip to content

Commit 675ae0c

Browse files
committed
Continue in REPL after : x =>
1 parent 1d46f18 commit 675ae0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ object Parsers {
944944
lookahead.isArrow
945945
&& {
946946
lookahead.nextToken()
947-
lookahead.token == INDENT
947+
lookahead.token == INDENT || lookahead.token == EOF
948948
}
949949
lookahead.nextToken()
950950
if lookahead.isIdent || lookahead.token == USCORE then

0 commit comments

Comments
 (0)