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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java

Issue 247313004: Fix for 14221/ 15553/ 16673- X isSubtypeOf E now returns false when X is some type and E is a type … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/type/InterfaceTypeImplTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
index f635f71360df2f0c11d86e984446fdfbda0d13ac..945287d116b640d1b8f61edf1dd18fc389c143e5 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
@@ -709,10 +709,10 @@ public class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
//
// T is a subtype of S, written T <: S, iff [bottom/dynamic]T << S
//
- if (type == DynamicTypeImpl.getInstance()) {
+ if (type.isDynamic()) {
return true;
} else if (type instanceof TypeParameterType) {
- return true;
+ return false;
} else if (type instanceof FunctionType) {
ClassElement element = getElement();
MethodElement callMethod = element.lookUpMethod("call", element.getLibrary());
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/type/InterfaceTypeImplTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698