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

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

Issue 10966047: Issue 5295. Reference to undefined static setter should be a warning not an error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 9aeb892dad701eb4ba59ee5dafa2e171c413fa49..0ef14c2b879fc059c7d9022853a296d1a93741f4 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -2252,6 +2252,9 @@ public class TypeAnalyzer implements DartCompilationPhase {
if (element != null) {
return element.getType();
}
+ if (node.getName().isResolutionAlreadyReportedThatTheMethodCouldNotBeFound()) {
+ return dynamicType;
+ }
DartNode qualifier = node.getQualifier();
Type receiver = nonVoidTypeOf(qualifier);
// convert into InterfaceType

Powered by Google App Engine
This is Rietveld 408576698