-
Notifications
You must be signed in to change notification settings - Fork 1.7k
NNBD. No compile time error when read of local late definitely unassigned variable #41981
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
I believe the rules in flow-analysis.md about The treatment of |
I think we should use area-front-end for this, because it is about the implementation of flow-analysis.md. |
Finally getting a chance to look at this. I believe what's happening is that I think this corner case is worth fixing. I'll try to get it fixed soon. |
See dart-lang/sdk#41981 Corresponding implementation change is here: https://dart-review.googlesource.com/c/sdk/+/154624
See dart-lang/sdk#41981 Corresponding implementation change is here: https://dart-review.googlesource.com/c/sdk/+/154624
According to the NNBD specification
But in the following code it's not true
This code produces no Issues in analyzer and
LateInitializationError
in CFE. There must be a compile time error hereDart VM version: 2.9.0-10.0.dev (dev) (Tue May 19 15:16:48 2020 +0200) on "windows_x64"
The text was updated successfully, but these errors were encountered: