Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 12389025: Do not register typechecks against type variables of typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change inCheckContext for typedef contexts. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/enqueue.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/enqueue.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698