Skip to content

[CP] [cfe] Fix Field.isCovariantByClass for fields without implicit setters #59692

@alexmarkov

Description

@alexmarkov

Commit(s) to merge

0263371

Target

stable

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/399624

Issue Description

CFE was incorrectly marking a final field in a constant as covariant, which caused crash in TFA during AOT and dart2wasm compilation.

What is the fix

CFE no longer marks fields without implicit setters as covariant.

Why cherry-pick

No easy workaround.

Risk

Low.

Issue link(s)

#57084, flutter/flutter#159760

Extra Info

Should be included into the upcoming Flutter stable release.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions