Skip to content

Change flow analysis to assume sound null safety once unsound null safety support is fully removed #3100

Open
@stereotype441

Description

@stereotype441

Currently, flow analysis conservatively assumes that a variable with a non-nullable type might still be null because the program might be running with unsound null safety, and we don't want null-related unsoundness to be able to be escalated into full unsoundness (see #1143 for details).

Although we don't officially support running with unsound null safety anymore, support has not yet been fully removed. Once we remove it, we should remove this conservative assumption from flow analysis.

Note that this is a significant enough change that it probably should be tied to a language version.

Metadata

Metadata

Assignees

Labels

flow-analysisDiscussions about possible future improvements to flow analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions