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

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

Issue 12210142: Implement is-checks against type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix a long line. 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
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 e54e83fdabd4dfc9af8ce9b5a8eb8c7921d122b5..03509e799d557d2d30e3bf41d45c3198dda401b1 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -2507,7 +2507,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
ClassElement cls = constructor.getEnclosingClass();
// [cls] might be the implementation element and only declaration elements
// may be registered.
- world.registerInstantiatedClass(cls.declaration);
+ world.registerInstantiatedType(mapping.getType(node));
if (cls.isAbstract(compiler)) {
compiler.backend.registerAbstractClassInstantiation();
}
@@ -2577,9 +2577,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
analyzeTypeArgument(type, argument);
});
}
- // TODO(ngeoffray): Also handle cases like:
- // 1) a is T
- // 2) T a (in checked mode).
+ // TODO(ngeoffray): Also handle T a (in checked mode).
}
return type;
}

Powered by Google App Engine
This is Rietveld 408576698