Field promotion erroneously carried from one cascade to another when the cascade target is unstable #52728
Labels
area-fe-analyzer-shared
Assigned by engineers; when triaging, prefer either area-front-end or area-analyzer.
fe-analyzer-shared-field-promotion
fe-analyzer-shared-flow-analysis
soundness
The following program is currently accepted by the analyzer and CFE when the "inference_update_2" flag (field promotion) is enabled:
But running the program yields a null-reference exception:
This is a soundness bug--the type system should have produced an error indicating that the target of
.g()
(on the line marked(1)
) requires a null check.The text was updated successfully, but these errors were encountered: