Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index 28f46de210eef42767d2dfb5b28d687c9f49711d..0859c3c2ae098e2ad3b2d17267db13bbd77e4aa3 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -63,6 +63,9 @@ class KernelAstAdapter { |
for (LocalFunctionElement localFunction in kernel.localFunctions.keys) { |
_nodeToElement[kernel.localFunctions[localFunction]] = localFunction; |
} |
+ for (TypeVariableElement typeVariable in kernel.typeParameters.keys) { |
+ _nodeToElement[kernel.typeParameters[typeVariable]] = typeVariable; |
+ } |
_typeConverter = new DartTypeConverter(this); |
} |