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

Unified Diff: test/type_subtype_test.dart

Issue 2439043002: Introduce Substitution class and Supertype class. (Closed)
Patch Set: Created 4 years, 2 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 | « test/type_substitution_identity_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/type_subtype_test.dart
diff --git a/test/type_subtype_test.dart b/test/type_subtype_test.dart
index b3180d3e9a32ef4cd5196d59a9cf373760033aab..56b23398f8e032395ed7fb5c52a2fc3b3b5fbeed 100644
--- a/test/type_subtype_test.dart
+++ b/test/type_subtype_test.dart
@@ -121,7 +121,7 @@ MockSubtypeTester makeSubtypeTester(Map<String, List<String>> testcase) {
LazyTypeEnvironment environment = new LazyTypeEnvironment();
Class objectClass = environment.lookup('Object');
Class functionClass = environment.lookup('Function');
- functionClass.supertype = objectClass.rawType;
+ functionClass.supertype = objectClass.asRawSupertype;
for (var typeString in testcase.keys) {
InterfaceType type = environment.parseFresh(typeString);
Class class_ = type.classNode;
@@ -130,9 +130,9 @@ MockSubtypeTester makeSubtypeTester(Map<String, List<String>> testcase) {
}
for (var supertypeString in testcase[typeString]) {
if (class_.supertype == null) {
- class_.supertype = environment.parse(supertypeString);
+ class_.supertype = environment.parseSuper(supertypeString);
} else {
- class_.implementedTypes.add(environment.parse(supertypeString));
+ class_.implementedTypes.add(environment.parseSuper(supertypeString));
}
}
}
« no previous file with comments | « test/type_substitution_identity_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698