Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java |
=================================================================== |
--- compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (revision 8296) |
+++ compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (working copy) |
@@ -2085,6 +2085,7 @@ |
if (TypeKind.of(valueType) != TypeKind.DYNAMIC) { |
Type varType = Types.makeInferred(valueType); |
Elements.setType(element, varType); |
+ node.getName().setType(varType); |
} |
} |
} |