Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
index 03509e799d557d2d30e3bf41d45c3198dda401b1..55f67cf5c369e585e63d816dd8b406d1be23211b 100644 |
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
@@ -1637,7 +1637,8 @@ class ResolverVisitor extends CommonResolverVisitor<Element> { |
this.statementScope = new StatementScope(), |
typeResolver = new TypeResolver(compiler), |
scope = element.buildScope(), |
- inCheckContext = compiler.enableTypeAssertions, |
+ inCheckContext = compiler.enableTypeAssertions && |
+ !element.enclosingElement.isTypedef(), |
ngeoffray
2013/03/01 08:36:00
Please add a comment.
|
inCatchBlock = false, |
super(compiler); |