-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle old given syntax where identifier and type are seperated by new line #21957
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
@@ -1010,13 +1010,25 @@ object Parsers { | |||
skipParams() | |||
lookahead.isColon | |||
&& { | |||
lookahead.nextToken() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the lookahead.nextToken()
to line 1018, just before
!lookahead.isAfterLineEnd
. That saves us a useless nextToken
when source is 3.6.
…w line (scala#21957) Fixes scala#21768 Fixes usages of `with {...}` and `= new {}` declarations presented in tests.
…w line (scala#21957) Fixes scala#21768 Fixes usages of `with {...}` and `= new {}` declarations presented in tests.
Fixes #21768
Fixes usages of
with {...}
and= new {}
declarations presented in tests.