Breaking change 54828: Make the type schema for null-aware spread operations consistent

127 views
Skip to first unread message

Paul Berry

unread,
Feb 5, 2024, 12:38:51 PMFeb 5
to anno...@dartlang.org
The type schema used by the compiler front end to perform type inference on the operand of a null-aware spread operator (...?) in map and set literals will be made nullable, to match the behavior of list literals (and to match the behavior of the analyzer).

Although this is technically a breaking change, it's not expected to have any effect on real-world code.

More details can be found here: https://github.com/dart-lang/sdk/issues/54828

If you have any concerns about this change, please leave comments in the linked issue.

Thank you!
Paul

Paul Berry

unread,
Feb 13, 2024, 6:19:15 PMFeb 13
to anno...@dartlang.org
Reply all
Reply to author
Forward
0 new messages