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

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

Issue 9186037: Issue 986: Static type warning when overriding static super members (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updating enum name Created 8 years, 11 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 c9761333d2a33ed23b0db34c9bfc79ffed9ce477..f5c31f393c7d19b2f88e12d298fc6b373c839d6c 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -1704,7 +1704,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
*/
private boolean canOverride(DartExpression node, Modifiers modifiers, Element element) {
if (element.getModifiers().isStatic()) {
- onError(node, ResolverErrorCode.CANNOT_OVERRIDE_STATIC_MEMBER,
+ onError(node, TypeErrorCode.OVERRIDING_INHERITED_STATIC_MEMBER,
element.getName(), element.getEnclosingElement().getName());
return false;
} else if (modifiers.isStatic()) {

Powered by Google App Engine
This is Rietveld 408576698