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

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

Issue 12088044: Issue 8169. Type inferred from 'query' is 'inferred exact'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't report problem when member exists, but not the unique. Created 7 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/InterfaceType.java
diff --git a/compiler/java/com/google/dart/compiler/type/InterfaceType.java b/compiler/java/com/google/dart/compiler/type/InterfaceType.java
index 99b7c9df9ee5549bb28b1770068e9ddd4ba3825a..2f76916ad88806b40c0282fb02130bbd0ada3b8d 100644
--- a/compiler/java/com/google/dart/compiler/type/InterfaceType.java
+++ b/compiler/java/com/google/dart/compiler/type/InterfaceType.java
@@ -35,11 +35,12 @@ public interface InterfaceType extends Type {
void registerSubClass(ClassElement subClass);
void unregisterSubClass(ClassElement subClass);
+
/**
- * @return the unique {@link Member} with given name, defined in one of the subtypes. May be
- * <code>null</code> if not found or not unique.
+ * @return the {@link Member}s with given name, defined in one of the subtypes. May be empty, but
+ * not <code>null</code>.
*/
- Member lookupSubTypeMember(String name);
+ List<Member> lookupSubTypeMembers(String name);
interface Member {
InterfaceType getHolder();

Powered by Google App Engine
This is Rietveld 408576698