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

Unified Diff: tests/language_strong/function_type_alias2_test.dart

Issue 2995813002: fix #30423, covariant parameter tearoff type should be Object (Closed)
Patch Set: 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_strong/function_type_alias2_test.dart
diff --git a/tests/language_strong/function_type_alias2_test.dart b/tests/language_strong/function_type_alias2_test.dart
index f3302ec56ac3c2fd4238caf99611a0b63a3f5e1f..40c80aea1a2daeef37f3dc0b84cf3b93ebab212a 100644
--- a/tests/language_strong/function_type_alias2_test.dart
+++ b/tests/language_strong/function_type_alias2_test.dart
@@ -42,12 +42,14 @@ main() {
Expect.isFalse(a.bar is f1);
Expect.isTrue(a.bar is f3);
Expect.isTrue(a.baz is f1);
+ Expect.isTrue(a.baz is f1<Object>);
+ Expect.isTrue(a.bar is f3<Object>);
Expect.isTrue(a.baz is f1<int>);
Expect.isTrue(a.bar is f3<int>);
- Expect.isFalse(a.baz is f1<double>);
- Expect.isFalse(a.bar is f3<double>);
+ Expect.isTrue(a.baz is f1<double>);
+ Expect.isTrue(a.bar is f3<double>);
Expect.isTrue(a.baz is f2);
Expect.isFalse(a.bar is f4);
- Expect.isTrue(a.baz is f2<int>);
- Expect.isFalse(a.bar is f2<int>);
+ Expect.isTrue(a.baz is f2<Object>);
+ Expect.isFalse(a.bar is f2<Object>);
}

Powered by Google App Engine
This is Rietveld 408576698