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

Unified Diff: test/type_substitute_bounds_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_parser.dart ('k') | test/type_substitution_identity_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/type_substitute_bounds_test.dart
diff --git a/test/type_substitute_bounds_test.dart b/test/type_substitute_bounds_test.dart
index 817101e7d9ababf7b4c920e69c6eccfa83e7d9f4..bddd7bd1af65774c37d891dfa124c82aff67a0cc 100644
--- a/test/type_substitute_bounds_test.dart
+++ b/test/type_substitute_bounds_test.dart
@@ -72,7 +72,9 @@ main() {
upperBounds[parameter] = environment.parse(bounds.upper);
lowerBounds[parameter] = environment.parse(bounds.lower);
});
- var substituted = substituteBounds(type, upperBounds, lowerBounds);
+ var substituted = Substitution
+ .fromUpperAndLowerBounds(upperBounds, lowerBounds)
+ .substituteType(type);
var expected = environment.parse(testCase.expected);
if (substituted != expected) {
fail('Expected `$expected` but got `$substituted`');
« no previous file with comments | « test/type_parser.dart ('k') | test/type_substitution_identity_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698