mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![]() Previously, if a record literal had named fields, type inference of the literal fields would happen as part of the process of hoisting. This was a problem because the hoisting process requires visiting the fields in reverse order, so as a result, the order in which subexpressions were type inferred was the reverse of the order in which they would be executed, leading to unsound type promotion behavior. Fixes #55914. Bug: https://github.com/dart-lang/sdk/issues/55914 Change-Id: I2d8930e0e1d7579d065bfb850aa7472d28a8012c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369761 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Paul Berry <paulberry@google.com> |
||
---|---|---|
.. | ||
simple | ||
assign_to_promoted_record_test.dart | ||
const_keys_test.dart | ||
regress52593_test.dart | ||
regress54375_test.dart | ||
type_inference_error_test.dart | ||
type_inference_field_name_mismatch_test.dart | ||
type_inference_named_field_order_test.dart | ||
type_inference_test.dart |