[analyzer] An external private field is erroneously promoted #53426
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
The code below produces an error in CFE but no error is reported in the analyzer
Seems that private fields promotion works here but it shouldn't. An external field declaration is effectively an external getter and setter. Nothing guarantees that it will return the same value if read twice, so it must not promote.
See #53419
The text was updated successfully, but these errors were encountered: