c3e91333b6
As discussed in https://github.com/dart-lang/language/issues/4344, the current implementation has some inconsistencies in how null-aware accesses interact with field promotion. I intend to fix these inconsistencies as part of the `sound-flow-analysis` language feature. In this CL, I'm adding a regression test of the behavior that's currently implemented (as of Dart 3.8), to help me make sure that when I implement the new behavior, the changes will only take effect when `sound-flow-analysis` is enabled. Bug: https://github.com/dart-lang/language/issues/4344 Change-Id: If52a0ad044399904e3389af2130ca802efdd7058 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425922 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.