Index: lib/runtime/dart_sdk.js |
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js |
index f7e60d0c91b0a2fbeafa5ba1a858d8e0c8d5e2eb..13ef971a992a8781867b40703f42c752ac9d4ac1 100644 |
--- a/lib/runtime/dart_sdk.js |
+++ b/lib/runtime/dart_sdk.js |
@@ -1072,13 +1072,9 @@ dart_library.library('dart_sdk', null, /* Imports */[ |
return null; |
} |
} |
- let result = dart.isSubtype_(ret1, ret2, covariant); |
- if (result === null) return result; |
- if (!result) { |
- if (ret2 !== dart.void) { |
- return null; |
- } |
- } |
+ if (ret2 === dart.void) return true; |
+ if (ret1 === dart.void) return ret2 === dart.dynamic; |
+ if (!dart.isSubtype_(ret1, ret2, covariant)) return null; |
return true; |
}; |
dart.canonicalType = function(t) { |