Chromium Code Reviews| Index: dart/lib/compiler/implementation/closure.dart |
| diff --git a/dart/lib/compiler/implementation/closure.dart b/dart/lib/compiler/implementation/closure.dart |
| index 090a8e9c5b304645014e2ee05fdd8ddd2f8148f9..208c7c33a5849e24c74172bd1a625b3197071705 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); |
|
Johnni Winther
2012/10/22 09:41:38
Nice!
|
| bool hasTypeVariable(DartType type) { |
| if (type is TypeVariableType) { |