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

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

Issue 12334070: Support runtime check of function types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Register dependency Created 7 years, 9 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 6b556374ca1e773c34a3d21580f97f8bfc1e84b2..fd810740626457c69741c7782479c2142f11c3ad 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -1963,6 +1963,10 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
scope = oldScope;
enclosingElement = previousEnclosingElement;
+ ClassElement thisClass = enclosingElement.getEnclosingClass();
ngeoffray 2013/03/13 09:30:46 Please add a comment.
Johnni Winther 2013/03/22 07:30:24 Changed to use the type of [function] itself, thus
+ if (thisClass != null && !thisClass.typeVariables.isEmpty) {
+ world.registerGenericClosure(function, mapping);
+ }
world.registerInstantiatedClass(compiler.functionClass, mapping);
}

Powered by Google App Engine
This is Rietveld 408576698