-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[CFE] Implement changes to null safety checking for local variables #43099
Comments
Note that I believe these tests should be fixed by this work as well: co19/Language/Variables/final_t04 |
These tests should also be fixed with this work: language/final/syntax_test/01 |
@johnniwinther I believe this issue covers the tests you have marked with "Late assignment of final variable: Not sure if spec is ready yet." in our tracking spreadsheet. As far as I know, the spec for this is complete and landed, are there open issues I'm forgetting? |
Thanks for the clarification. At this point we're then waiting for the flow analysis to be updated according to the spec. After that we might have some additional integration work on the CFE side. |
New tests for the inference and initialization portion landed here Failing: language/nnbd/inference/variable_initialization_promotion_test |
This reverts commit 6a1c54e. Reason for revert: Triggers test failure: https://ci.chromium.org/p/dart/builders/ci.sandbox/vm-kernel-precomp-linux-debug-x64/8247 Original change's description: > Flow analysis: promote to non-nullable on initialization > > When flow analysis encounters a variable declaration of the form `T? x > = expr;`, if the type of `expr` is `T`, then the variable is > immediately promoted to type `T`. > > Fixes #43099. > > Change-Id: Ia206fe0d50e2fdd9bdf637e13c85633d8490dbcc > Bug: #43099 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/163841 > Commit-Queue: Paul Berry <paulberry@google.com> > Reviewed-by: Bob Nystrom <rnystrom@google.com> > Reviewed-by: Johnni Winther <johnniwinther@google.com> > Reviewed-by: Konstantin Shcheglov <scheglov@google.com> TBR=paulberry@google.com,scheglov@google.com,rnystrom@google.com,johnniwinther@google.com Change-Id: I8549b48a734f527194ce11d82235b9d5c6e58185 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: #43099 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/165564 Reviewed-by: Clement Skau <cskau@google.com> Commit-Queue: Clement Skau <cskau@google.com>
Reopening since https://dart-review.googlesource.com/c/sdk/+/165564 reverted the fix |
Small set of changes to the errors and warnings around local variables landed here.
Tests for the the definite assignment based errors landed here.
Tests for the inference and promotion section to follow.
The text was updated successfully, but these errors were encountered: