40c1f17434
Move null check up so it can return before performing the cast in the case of a covariant parameter. Change-Id: I727822751e6613fac635fa49b254b9406eb93e1c Fixes: https://github.com/dart-lang/sdk/issues/41866 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147812 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>