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

Unified Diff: tests/language_strong/mixin_type_parameters_super_test.dart

Issue 2861783002: fix more mixin tests to work in strong mode (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « tests/language_strong/mixin_type_parameters_super_extends_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/mixin_type_parameters_super_test.dart
diff --git a/tests/language_strong/mixin_type_parameters_super_test.dart b/tests/language_strong/mixin_type_parameters_super_test.dart
index 84818cb25bf871146af0e964c08d578f80a66e09..a5aa7414f91e3f5f90f5d2a362d15c59f3fd6b8d 100644
--- a/tests/language_strong/mixin_type_parameters_super_test.dart
+++ b/tests/language_strong/mixin_type_parameters_super_test.dart
@@ -29,7 +29,7 @@ class S<T> {
static final bool checkedMode = computeCheckedMode();
static bool computeCheckedMode() {
try {
- int x = "foo";
+ int x = "foo" as dynamic;
} on Error {
return true;
}
@@ -47,32 +47,32 @@ class C3 = S<String> with M;
main() {
var c0 = new C0();
Expect.isTrue(c0 is S);
- Expect.isTrue(c0 is S<int>);
- Expect.isTrue(c0 is S<String>);
+ Expect.isFalse(c0 is S<int>);
+ Expect.isFalse(c0 is S<String>);
Expect.isTrue(c0.matches(c0));
Expect.isTrue(c0.matches(42));
Expect.isTrue(c0.matches("hello"));
var c0_int = new C0<int>();
Expect.isTrue(c0_int is S);
- Expect.isTrue(c0_int is S<int>);
- Expect.isTrue(c0_int is S<String>);
+ Expect.isFalse(c0_int is S<int>);
+ Expect.isFalse(c0_int is S<String>);
Expect.isTrue(c0_int.matches(c0));
Expect.isTrue(c0_int.matches(42));
Expect.isTrue(c0_int.matches("hello"));
var c0_String = new C0<String>();
Expect.isTrue(c0_String is S);
- Expect.isTrue(c0_String is S<int>);
- Expect.isTrue(c0_String is S<String>);
+ Expect.isFalse(c0_String is S<int>);
+ Expect.isFalse(c0_String is S<String>);
Expect.isTrue(c0_String.matches(c0));
Expect.isTrue(c0_String.matches(42));
Expect.isTrue(c0_String.matches("hello"));
var c1 = new C1();
Expect.isTrue(c1 is S);
- Expect.isTrue(c1 is S<int>);
- Expect.isTrue(c1 is S<String>);
+ Expect.isFalse(c1 is S<int>);
+ Expect.isFalse(c1 is S<String>);
Expect.isTrue(c1.matches(c1));
Expect.isTrue(c1.matches(42));
Expect.isTrue(c1.matches("hello"));
« no previous file with comments | « tests/language_strong/mixin_type_parameters_super_extends_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698