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

Unified Diff: tests/language_strong/function_subtype_cast1_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_cast1_test.dart
diff --git a/tests/language_strong/function_subtype_cast1_test.dart b/tests/language_strong/function_subtype_cast1_test.dart
index d2ff18088b85a8848f99000722c5df3d80a57fa4..e23eb0fd8603fdaf741ef3a2499825989714b778 100644
--- a/tests/language_strong/function_subtype_cast1_test.dart
+++ b/tests/language_strong/function_subtype_cast1_test.dart
@@ -21,12 +21,12 @@ void main() {
Expect.isNotNull(new Class().bar as Bar);
Expect.isNotNull(new Class<int>().bar as Foo);
- Expect.throws(() => new Class<int>().bar as Foo<bool>, (e) => true);
+ Expect.isNotNull(new Class<int>().bar as Foo<bool>);
Expect.isNotNull(new Class<int>().bar as Foo<int>);
Expect.isNotNull(new Class<int>().bar as Bar);
Expect.isNotNull(new Class<bool>().bar as Foo);
Expect.isNotNull(new Class<bool>().bar as Foo<bool>);
- Expect.throws(() => new Class<bool>().bar as Foo<int>, (e) => true);
- Expect.throws(() => new Class<bool>().bar as Bar, (e) => true);
+ Expect.isNotNull(new Class<bool>().bar as Foo<int>);
+ Expect.isNotNull(new Class<bool>().bar as Bar);
}

Powered by Google App Engine
This is Rietveld 408576698