Index: pkg/compiler/lib/src/resolution/constructors.dart |
diff --git a/pkg/compiler/lib/src/resolution/constructors.dart b/pkg/compiler/lib/src/resolution/constructors.dart |
index 214ebf431bf9937983f99e1304878136c45bb2ab..1ccf7680b34da0fe01c9ed44e14e8b57629dcb17 100644 |
--- a/pkg/compiler/lib/src/resolution/constructors.dart |
+++ b/pkg/compiler/lib/src/resolution/constructors.dart |
@@ -619,7 +619,9 @@ class ConstructorResolver extends CommonResolverVisitor<ConstructorResult> { |
// This is not really resolving a type-annotation, but the name of the |
// constructor. Therefore we allow deferred types. |
DartType type = resolver.resolveTypeAnnotation(node, |
- malformedIsError: inConstContext, deferredIsMalformed: false); |
+ malformedIsError: inConstContext, |
+ deferredIsMalformed: false, |
+ registerCheckedModeCheck: false); |
Send send = node.typeName.asSend(); |
PrefixElement prefix; |
if (send != null) { |