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) { |