| Index: tests/corelib/core_runtime_types_test.dart
|
| diff --git a/tests/corelib/core_runtime_types_test.dart b/tests/corelib/core_runtime_types_test.dart
|
| index d1733bd1d04cf1a2cee41eda757b8060bda9faee..e3d94ce2cbf75fc17029af6b41196a092506341a 100644
|
| --- a/tests/corelib/core_runtime_types_test.dart
|
| +++ b/tests/corelib/core_runtime_types_test.dart
|
| @@ -45,16 +45,10 @@ class CoreRuntimeTypesTest {
|
| }
|
|
|
| static assertTypeError(void f()) {
|
| - try {
|
| - f();
|
| - } catch (exception) {
|
| - Expect.equals(true, (exception is TypeError) ||
|
| - (exception is NoSuchMethodError) ||
|
| - (exception is NullPointerException) ||
|
| - (exception is ArgumentError));
|
| - return;
|
| - }
|
| - Expect.equals(true, false);
|
| + Expect.throws(f, (exception) => (exception is TypeError) ||
|
| + (exception is NoSuchMethodError) ||
|
| + (exception is NullPointerException) ||
|
| + (exception is ArgumentError));
|
| }
|
|
|
| static testBooleanOperators() {
|
|
|