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 17f1d83f5f87639ef053ee3d5a2031ba44f32502..248eb4532fce331887a0859f0e01bba53e1f609c 100644 |
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java |
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java |
@@ -482,7 +482,7 @@ public class TypeAnalyzer implements DartCompilationPhase { |
case DYNAMIC: |
return member.getType(); |
default: |
- return typeError(diagnosticNode, TypeErrorCode.NOT_A_METHOD_IN, |
+ return typeError(diagnosticNode, TypeErrorCode.USE_ASSIGNMENT_ON_SETTER, |
name, receiver); |
} |
break; |