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 5994a15203c3a7c8eef2e0c2195f474612f4908f..39bd77da09410c377fe32e9a5e52453bc9734d3a 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -4063,11 +4063,13 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
} |
DartType resolveTypeAnnotation(TypeAnnotation node, |
- {bool malformedIsError: false, bool deferredIsMalformed: true}) { |
+ {bool malformedIsError: false, |
+ bool deferredIsMalformed: true, |
+ bool registerCheckedModeCheck: true}) { |
DartType type = typeResolver.resolveTypeAnnotation(this, node, |
malformedIsError: malformedIsError, |
deferredIsMalformed: deferredIsMalformed); |
- if (!type.isDynamic) { |
+ if (registerCheckedModeCheck && !type.isDynamic) { |
registry.registerTypeUse(new TypeUse.checkedModeCheck(type)); |
} |
return type; |