-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Parse getter with the same name of the enclosing class #30981
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
Comments
Interesting. Fasta doesn't even report an error if I change it to this:
|
Let me know if this is blocking you. |
I believe that this fixes the AstBuilder (https://dart-review.googlesource.com/c/sdk/+/25580). I've started looking at kernel, but don't know whether I'll have any success and don't mind having someone else look at it. |
@peter-ahe-google I made some changes (https://dart-review.googlesource.com/c/sdk/+/25600) but there was no change in the test status, which either means that my changes didn't have the intended effect or that there are no tests for this case. Advice would be appreciated. |
@bwilkerson I would add the above examples to pkg/front_end/testcases. Also, @askeksa-google is working on a similar bug. See #30834 and https://dart-review.googlesource.com/c/sdk/+/34120 |
Also #31299 |
After https://dart-review.googlesource.com/c/sdk/+/34120 the code now produces a getter properly, plus a synthetic constructor. Can this issue be closed? |
I'd be most comfortable closing this bug after we've added a regression test corresponding to the getter from my example. |
The produced Kernel does not correspond to the original Dart code.
The text was updated successfully, but these errors were encountered: