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

Unified Diff: tests/language_strong/function_subtype_call1_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_subtype_call1_test.dart
diff --git a/tests/language_strong/function_subtype_call1_test.dart b/tests/language_strong/function_subtype_call1_test.dart
index 2ac5e4320d72d23f54f20ad1d20e7290ac972ce5..07daa9bc22cf1dfe304c9fd7ebed7aabd3c87e40 100644
--- a/tests/language_strong/function_subtype_call1_test.dart
+++ b/tests/language_strong/function_subtype_call1_test.dart
@@ -26,10 +26,10 @@ main() {
Expect.isFalse(new C1<bool>() is Baz, 'new C1<bool>() is Baz');
Expect.isTrue(new C1<bool>() is Boz, 'new C1<bool>() is Boz');
- Expect.isFalse(new C1<int>() is Foo, 'new C1<int>() is Foo');
- Expect.isFalse(new C1<int>() is Bar, 'new C1<int>() is Bar');
+ Expect.isTrue(new C1<int>() is Foo, 'new C1<int>() is Foo');
+ Expect.isTrue(new C1<int>() is Bar, 'new C1<int>() is Bar');
Expect.isFalse(new C1<int>() is Baz, 'new C1<int>() is Baz');
- Expect.isFalse(new C1<int>() is Boz, 'new C1<int>() is Boz');
+ Expect.isTrue(new C1<int>() is Boz, 'new C1<int>() is Boz');
Expect.isTrue(new C1() is Foo, 'new C1() is Foo');
Expect.isTrue(new C1() is Bar, 'new C1() is Bar');
@@ -43,8 +43,8 @@ main() {
Expect.isFalse(new C2<int>() is Foo, 'new C2<int>() is Foo');
Expect.isFalse(new C2<int>() is Bar, 'new C2<int>() is Bar');
- Expect.isFalse(new C2<int>() is Baz, 'new C2<int>() is Baz');
- Expect.isFalse(new C2<int>() is Boz, 'new C2<int>() is Boz');
+ Expect.isTrue(new C2<int>() is Baz, 'new C2<int>() is Baz');
+ Expect.isTrue(new C2<int>() is Boz, 'new C2<int>() is Boz');
Expect.isFalse(new C2() is Foo, 'new C2() is Foo');
Expect.isFalse(new C2() is Bar, 'new C2() is Bar');

Powered by Google App Engine
This is Rietveld 408576698