Chromium Code Reviews| Index: pkg/compiler/lib/src/ssa/builder.dart |
| diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart |
| index 77025b0cc96e44c2c2224bc462b7a3d62b9d76ad..0be1efb8b9824332d66467b58b758971319c9de0 100644 |
| --- a/pkg/compiler/lib/src/ssa/builder.dart |
| +++ b/pkg/compiler/lib/src/ssa/builder.dart |
| @@ -4753,6 +4753,9 @@ class SsaBuilder extends ast.Visitor |
| HInstruction addTypeVariableReference(TypeVariableType type, |
| {SourceInformation sourceInformation}) { |
| assert(assertTypeInContext(type)); |
| + if (type is MethodTypeVariableType) { |
| + return graph.addConstantNull(compiler); |
| + } |
|
eernst
2016/08/22 14:58:50
This looked a bit surprising at first, but it ende
|
| Element member = sourceElement; |
| bool isClosure = member.enclosingElement.isClosure; |
| if (isClosure) { |