| Index: tests/language/type_variable_scope2_test.dart
|
| diff --git a/tests/language/type_variable_scope2_test.dart b/tests/language/type_variable_scope2_test.dart
|
| index 569daee6b7329c2761275563a1d2b684d8fd8d65..2a008f95843951fc91baf419a58e680f43a431f7 100644
|
| --- a/tests/language/type_variable_scope2_test.dart
|
| +++ b/tests/language/type_variable_scope2_test.dart
|
| @@ -4,17 +4,8 @@
|
|
|
| import "package:expect/expect.dart";
|
|
|
| -// Test that malformed type arguments are reported in checked mode.
|
| -
|
| -isCheckedMode() {
|
| - try {
|
| - var i = 1;
|
| - String s = i;
|
| - return false;
|
| - } catch (e) {
|
| - return true;
|
| - }
|
| -}
|
| +// Test that malformed type arguments treated as dynamic in both production and
|
| +// checked mode.
|
|
|
| class Foo<T> {
|
| // T is not in scope for a static method.
|
| @@ -24,13 +15,11 @@ class Foo<T> {
|
| }
|
|
|
| main() {
|
| - bool got_type_error = false;
|
| try {
|
| Expect.isTrue(Foo.m() is Foo);
|
| } on TypeError catch (error) {
|
| print(error);
|
| - got_type_error = true;
|
| + // No type error in production nor checked mode.
|
| + Expect.fail();
|
| }
|
| - // Type error in checked mode only.
|
| - Expect.isTrue(got_type_error == isCheckedMode());
|
| }
|
|
|