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

Unified Diff: tests/language_2/function_type/function_type7_test.dart

Issue 3002773002: fix #30462, update function_type tests to understand covariant generics (Closed)
Patch Set: style: use ?? false rather than == true Created 3 years, 4 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: tests/language_2/function_type/function_type7_test.dart
diff --git a/tests/language_2/function_type/function_type7_test.dart b/tests/language_2/function_type/function_type7_test.dart
index 0111245287bb8e85bac03ab705df3fc0ea1ed94a..0e1213511bf56e42f34fea627e17487adc07d859 100644
--- a/tests/language_2/function_type/function_type7_test.dart
+++ b/tests/language_2/function_type/function_type7_test.dart
@@ -264,10 +264,10 @@ class U7<T> {
});
}
if (tIsInt || tIsBool) {
- Expect.equals(tIsInt, m1 is F1<int>);
- Expect.equals(tIsBool, m1 is F1<bool>);
- Expect.equals(tIsInt, confuse(m1) is F1<int>);
- Expect.equals(tIsBool, confuse(m1) is F1<bool>);
+ Expect.equals(true, m1 is F1<int>);
+ Expect.equals(true, m1 is F1<bool>);
+ Expect.equals(true, confuse(m1) is F1<int>);
+ Expect.equals(true, confuse(m1) is F1<bool>);
}
}
« no previous file with comments | « tests/language_2/function_type/function_type6_test.dart ('k') | tests/language_2/function_type/function_type80_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698