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

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

Issue 11364211: Type quality of ArrayAccess is same as quality of target type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/Types.java
diff --git a/compiler/java/com/google/dart/compiler/type/Types.java b/compiler/java/com/google/dart/compiler/type/Types.java
index d825e85c2f0cb06e55b11905ea6981f9ceb5ae13..8ec7a882e4469c32437ab090e9b773c2fae015b1 100644
--- a/compiler/java/com/google/dart/compiler/type/Types.java
+++ b/compiler/java/com/google/dart/compiler/type/Types.java
@@ -714,6 +714,9 @@ public class Types {
if (type.getQuality().ordinal() > quality.ordinal()) {
return type;
}
+ if (quality == TypeQuality.EXACT) {
+ return type;
+ }
Set<Class<?>> interfaceSet = getAllImplementedInterfaces(type.getClass());
if (!interfaceSet.isEmpty()) {
Class<?>[] interfaces = (Class[]) interfaceSet.toArray(new Class[interfaceSet.size()]);

Powered by Google App Engine
This is Rietveld 408576698