mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:45:06 +00:00
a46de1c30c
Throwing `null` is not supported in sound null safety. This change inserts an implicit `as Object` cast that result in a TypeError, rather than a NullThrownError, in sound mode. Closes https://github.com/dart-lang/sdk/issues/49198 TEST=Covered by the existing tests Change-Id: I041baf95becd2df1b940fdff7cde398a4e391ee7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247546 Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Chloe Stefantsova <cstefantsova@google.com> |
||
---|---|---|
.. | ||
src | ||
widget_cache.dart |