[CP] DDC support for record subtype checks with web numeric semantics #52531
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-merged
Cherry-pick has been merged to the stable or beta branch.
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
web-dev-compiler
Commit(s) to merge
44b5ca7
8dfd25a
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/306307
Issue Description
The subtype check implementation for records in DDC did not respect web semantics for numerics (
int
being a subtype ofdouble
)What is the fix
Update DDC's subtype check implementation to dispatch on the subtype checks for each of its fields.
Why cherry-pick
This pattern can be triggered extremely easily in DDC. E.g.:
The issue has a high impact potential due records being widely advertised in the Dart 3.0 release.
Risk
low
Issue link(s)
#52480
Extra Info
This contains cherry-picks for the CLs in this chain. The latter just adds a regression test. Additionally, this change diverges very slightly from
main
inRecordType
'sas
check. For a clean merge,RecordImpl
(inmain
) is renamed to_RecordImpl
.The text was updated successfully, but these errors were encountered: