Breaking change 56065: Change the context for the operand of throw to Object.

23 views
Skip to first unread message

Paul Berry

unread,
Jun 21, 2024, 11:30:20 AM (12 days ago) Jun 21
to anno...@dartlang.org
The type schema for type inference of the operand of a throw expression will be changed from _ (the unknown type) to non-nullable Object.

This change is expected to have very low impact on real-world code. But in principle it could cause changes in runtime behavior.

For additional details please see https://github.com/dart-lang/sdk/issues/56065.

If this breaking change poses a severe problem, please leave comments in the linked issue.

Reply all
Reply to author
Forward
0 new messages