mirror of
https://github.com/dart-lang/sdk
synced 2024-07-19 20:17:27 +00:00
c798bd8e53
When growing an array, we're checking if element type is nullable. The problem is that 'null is! T' is true for legacy types T (other than top types and Null), so it throws for List<int*>. In order to be able to grow arrays with all element types which can hold null (including legacy element types) this test is changed to null as T; which throws type error if T cannot hold null. Change-Id: Icf0a397109945b049b4aaead4c7eab11d903c45b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134790 Reviewed-by: Liam Appelbe <liama@google.com> Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |