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

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

Issue 18054013: Dynamic is a subtype of any type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Restore DynamicTypeImpl.substitute() Created 7 years, 6 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/type/InterfaceTypeImplTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/type/InterfaceTypeImplTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/type/InterfaceTypeImplTest.java
index 1e26c6cce0c26bf6cb88ac6c4798807fcdebdba9..c5f1b156ed1857757bc51a9000c2401a8068527a 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/type/InterfaceTypeImplTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/type/InterfaceTypeImplTest.java
@@ -968,7 +968,7 @@ public class InterfaceTypeImplTest extends EngineTestCase {
InterfaceType typeA = classA.getType();
Type dynamicType = DynamicTypeImpl.getInstance();
- assertFalse(dynamicType.isSubtypeOf(typeA));
+ assertTrue(dynamicType.isSubtypeOf(typeA));
assertTrue(typeA.isSubtypeOf(dynamicType));
}
@@ -1120,7 +1120,7 @@ public class InterfaceTypeImplTest extends EngineTestCase {
Type dynamicType = DynamicTypeImpl.getInstance();
assertTrue(dynamicType.isSupertypeOf(typeA));
- assertFalse(typeA.isSupertypeOf(dynamicType));
+ assertTrue(typeA.isSupertypeOf(dynamicType));
}
public void test_isSupertypeOf_indirectSupertype() {

Powered by Google App Engine
This is Rietveld 408576698