mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:06:59 +00:00
DDC: disallow ignore option on Stream cast failures
See #27223 Change-Id: Ia23edc3700a8e0bb3d982be9b0bb36ad4522091d Reviewed-on: https://dart-review.googlesource.com/56033 Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Vijay Menon <vsm@google.com>
This commit is contained in:
parent
e191d4feb5
commit
c771e4d132
|
@ -425,8 +425,7 @@ final _ignoreTypeFailure = JS('', '''(() => {
|
|||
|
||||
if (!!$isSubtype(type, $Iterable) && !!$isSubtype(actual, $Iterable) ||
|
||||
!!$isSubtype(type, $Future) && !!$isSubtype(actual, $Future) ||
|
||||
!!$isSubtype(type, $Map) && !!$isSubtype(actual, $Map) ||
|
||||
!!$isSubtype(type, $Stream) && !!$isSubtype(actual, $Stream)) {
|
||||
!!$isSubtype(type, $Map) && !!$isSubtype(actual, $Map)) {
|
||||
console.warn('Ignoring cast fail from ' + $typeName(actual) +
|
||||
' to ' + $typeName(type));
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue