Skip to content

Soft keywords are parsed greedy? #7102

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

Closed
SrTobi opened this issue Aug 26, 2019 · 2 comments
Closed

Soft keywords are parsed greedy? #7102

SrTobi opened this issue Aug 26, 2019 · 2 comments

Comments

@SrTobi
Copy link
Contributor

SrTobi commented Aug 26, 2019

minimized code

class X
object X extends X
given as as X = X

expectation

A new given instance of name as

actual

image

@SrTobi
Copy link
Contributor Author

SrTobi commented Aug 26, 2019

This might be correct behavior but then #7103 should work.

@odersky
Copy link
Contributor

odersky commented Aug 26, 2019

Yes, this is indeed the correct behavior. #7103 is about to be fixed instead.

@odersky odersky closed this as completed Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants