| Index: dart/lib/compiler/implementation/closure.dart
|
| diff --git a/dart/lib/compiler/implementation/closure.dart b/dart/lib/compiler/implementation/closure.dart
|
| index 23d5e9e8441c657b27e69be71a155a975f42ab94..e832661bf7a1bf5c9e023fe6ed4e2685386aa05b 100644
|
| --- a/dart/lib/compiler/implementation/closure.dart
|
| +++ b/dart/lib/compiler/implementation/closure.dart
|
| @@ -366,8 +366,7 @@ class ClosureTranslator extends Visitor {
|
| }
|
|
|
| visitNewExpression(NewExpression node) {
|
| - TypeAnnotation annotation = node.send.getTypeAnnotation();
|
| - DartType type = elements.getType(annotation);
|
| + DartType type = elements.getType(node);
|
|
|
| bool hasTypeVariable(DartType type) {
|
| if (type is TypeVariableType) {
|
|
|