Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
index 3f215972b82eb3cb3bcc2a7e45e6f247a3ec0404..4c72122f90c2c362031030285533b6a9ac0e5144 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
@@ -631,7 +631,7 @@ class TypeRepresentationGenerator extends DartTypeVisitor {
addProperty(namer.functionTypeTag(), name);
if (type.returnType.isVoid) {
addProperty(namer.functionTypeVoidReturnTag(), js('true'));
- } else if (!type.returnType.isDynamic) {
+ } else if (!type.returnType.treatAsDynamic) {
addProperty(namer.functionTypeReturnTypeTag(), visit(type.returnType));
}
if (!type.parameterTypes.isEmpty) {

Powered by Google App Engine
This is Rietveld 408576698