Chromium Code Reviews| 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); |
| } |