Skip to content

Consider removing strictCasts awareness from the constant evaluator #54338

Closed
@pq

Description

@pq

The type system object will soon not track strictCasts (see: #53873) and in the process of evaluating that impact, we noticed that the const evaluator is using this setting when checking assignability in order to avoid reporting duplicate errors. Chatting with @scheglov, this was arguably not the best place to de-duplicate and looking forward we want to get away from the const evaluator doing these checks. In the short term, removing these checks would result in potentially duplicated errors but will unblock #53873 in the service of the big analysis options refactor (#53876).

@kallentu and I will chat about this later and I'll update w/ next steps.

/fyi @bwilkerson

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresanalyzer-constantsdevexp-uxlegacy-area-analyzerUse area-devexp instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions