Index: pkg/compiler/lib/src/resolution/members.dart |
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart |
index efc6e0da4f5c9bd4f9d503a6de9b6a722a586e60..14c1aab6aa0faf0cd28f1e984a8d103f96f416fd 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -4061,7 +4061,9 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
DartType type = typeResolver.resolveTypeAnnotation(this, node, |
malformedIsError: malformedIsError, |
deferredIsMalformed: deferredIsMalformed); |
- registry.registerTypeUse(new TypeUse.checkedModeCheck(type)); |
+ if (!type.isDynamic) { |
+ registry.registerTypeUse(new TypeUse.checkedModeCheck(type)); |
+ } |
return type; |
} |