| Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| index 791eb2f6984cd4dc58f6244a4226750d50992ef8..27957ec51680583566924fb6e724a3c5b7de4341 100644
|
| --- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| +++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| @@ -1792,6 +1792,10 @@ public class TypeAnalyzer implements DartCompilationPhase {
|
| if (node.getType() != null) {
|
| return node.getType();
|
| }
|
| + if (node.getParent() instanceof DartDeclaration<?>
|
| + && ((DartDeclaration<?>) node.getParent()).getName() == node) {
|
| + return node.getType();
|
| + }
|
| Element element = node.getElement();
|
| Type type;
|
| switch (ElementKind.of(element)) {
|
|
|