Skip to content

CFE: Emit error for non-void operator []= #42701

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
eernstg opened this issue Jul 15, 2020 · 1 comment
Closed

CFE: Emit error for non-void operator []= #42701

eernstg opened this issue Jul 15, 2020 · 1 comment
Labels
front-end-missing-error legacy-area-front-end Legacy: Use area-dart-model instead.

Comments

@eernstg
Copy link
Member

eernstg commented Jul 15, 2020

Based on the spec changes in dart-lang/language#1083, a declaration of an operator []= with a return type which is not void should incur a compile-time error (with and without null-safety). The CFE currently does not emit that error.

@johnniwinther
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end-missing-error legacy-area-front-end Legacy: Use area-dart-model instead.
Projects
None yet
Development

No branches or pull requests

2 participants