Explore the possibility of showing the user promotion attempt locations #44899
Labels
area-dart-model
For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.
model-flow
Implementation of flow analysis in analyzer/cfe
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
(Parent issue #44897)
When a promotion attempt fails, it would be nice to provide the user with pointers to both the line of code that attempted the promotion and the line of code that made the promotion fail, e.g. in this code:
it would be nice for the error message generated at (3) to point to both (1) (the site of the promotion attempt) and (2) the site of the code that defeated promotion). Currently we only point at (2).
The text was updated successfully, but these errors were encountered: