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

Unified Diff: tests/language_strong/function_subtype_call2_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_call2_test.dart
diff --git a/tests/language_strong/function_subtype_call2_test.dart b/tests/language_strong/function_subtype_call2_test.dart
index 12487d207db17d937b64ed96ded03b841f80beb5..4c211f38fd330f60feb6ec38e91674aeb5d807c3 100644
--- a/tests/language_strong/function_subtype_call2_test.dart
+++ b/tests/language_strong/function_subtype_call2_test.dart
@@ -31,10 +31,10 @@ main() {
new D1<String, bool>() is Baz, 'new D1<String, bool>() is Baz');
Expect.isTrue(new D1<String, bool>() is Boz, 'new D1<String, bool>() is Boz');
- Expect.isFalse(new D1<bool, int>() is Foo, 'new D1<bool, int>() is Foo');
- Expect.isFalse(new D1<bool, int>() is Bar, 'new D1<bool, int>() is Bar');
+ Expect.isTrue(new D1<bool, int>() is Foo, 'new D1<bool, int>() is Foo');
+ Expect.isTrue(new D1<bool, int>() is Bar, 'new D1<bool, int>() is Bar');
Expect.isFalse(new D1<bool, int>() is Baz, 'new D1<bool, int>() is Baz');
- Expect.isFalse(new D1<bool, int>() is Boz, 'new D1<bool, int>() is Boz');
+ Expect.isTrue(new D1<bool, int>() is Boz, 'new D1<bool, int>() is Boz');
Expect.isTrue(new D1() is Foo, 'new D1() is Foo');
Expect.isTrue(new D1() is Bar, 'new D1() is Bar');
@@ -50,8 +50,8 @@ main() {
Expect.isFalse(new D2<bool, int>() is Foo, 'new D2<bool, int>() is Foo');
Expect.isFalse(new D2<bool, int>() is Bar, 'new D2<bool, int>() is Bar');
- Expect.isFalse(new D2<bool, int>() is Baz, 'new D2<bool, int>() is Baz');
- Expect.isFalse(new D2<bool, int>() is Boz, 'new D2<bool, int>() is Boz');
+ Expect.isTrue(new D2<bool, int>() is Baz, 'new D2<bool, int>() is Baz');
+ Expect.isTrue(new D2<bool, int>() is Boz, 'new D2<bool, int>() is Boz');
Expect.isFalse(new D2() is Foo, 'new D2() is Foo');
Expect.isFalse(new D2() is Bar, 'new D2() is Bar');

Powered by Google App Engine
This is Rietveld 408576698