Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1522)

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 11788004: Issue 6578. Move 'getter/setter static mismatch' into type problems (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 fa1bc574457743c8e3b849b82bef0897c17781be..375f64417848d1881e1b5b20adaa0741cc3ec60f 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -2142,7 +2142,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
// getter and setter should have same "static" flag
if (modifiers.isStatic() != getterElement.getModifiers().isStatic()) {
- onError(node.getName(), ResolverErrorCode.FIELD_GETTER_SETTER_SAME_STATIC);
+ onError(node.getName(), TypeErrorCode.FIELD_GETTER_SETTER_SAME_STATIC);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698