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

Unified Diff: tests/language_2/function_type/function_type45_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_type45_test.dart
diff --git a/tests/language_2/function_type/function_type45_test.dart b/tests/language_2/function_type/function_type45_test.dart
index d85dd235b3132d93748668d82067eca7a9a60636..0a91c9c0d3ecbe04059c6f2624b1018ed0a1006b 100644
--- a/tests/language_2/function_type/function_type45_test.dart
+++ b/tests/language_2/function_type/function_type45_test.dart
@@ -199,10 +199,10 @@ class U45<T> {
});
}
if (tIsInt || tIsBool) {
- Expect.equals(tIsInt, m0 is F0<int>);
- Expect.equals(tIsBool, m0 is F0<bool>);
- Expect.equals(tIsInt, confuse(m0) is F0<int>);
- Expect.equals(tIsBool, confuse(m0) is F0<bool>);
+ Expect.equals(true, m0 is F0<int>);
+ Expect.equals(true, m0 is F0<bool>);
+ Expect.equals(true, confuse(m0) is F0<int>);
+ Expect.equals(true, confuse(m0) is F0<bool>);
}
}
« no previous file with comments | « tests/language_2/function_type/function_type44_test.dart ('k') | tests/language_2/function_type/function_type46_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698