| Index: tests/lib_strong/mirrors/circular_factory_redirection_test.dart
|
| diff --git a/tests/lib_strong/mirrors/circular_factory_redirection_test.dart b/tests/lib_strong/mirrors/circular_factory_redirection_test.dart
|
| index be0212a1d5a432fa0939b694fd19f7abb0348159..4823f55a5c840a645672594c0767c914f3433fb5 100644
|
| --- a/tests/lib_strong/mirrors/circular_factory_redirection_test.dart
|
| +++ b/tests/lib_strong/mirrors/circular_factory_redirection_test.dart
|
| @@ -10,13 +10,11 @@ class A {
|
| A.circular() = B.circular; // //# 01: compile-time error
|
| const A.circular2() = B.circular2; // //# 02: compile-time error
|
| }
|
| -
|
| class B {
|
| B();
|
| B.circular() = C.circular; // //# 01: continued
|
| const B.circular2() = C.circular2; // //# 02: continued
|
| }
|
| -
|
| class C {
|
| C();
|
| C.circular() = A.circular; // //# 01: continued
|
| @@ -29,13 +27,11 @@ main() {
|
| new A.circular(); // //# 01: continued
|
| new A.circular2(); // //# 02: continued
|
|
|
| - Expect.throws(
|
| - () => cm.newInstance(#circular, []),
|
| - (e) => e is NoSuchMethodError,
|
| - 'Should disallow circular redirection (non-const)');
|
| + Expect.throws(() => cm.newInstance(#circular, []),
|
| + (e) => e is NoSuchMethodError,
|
| + 'Should disallow circular redirection (non-const)');
|
|
|
| - Expect.throws(
|
| - () => cm.newInstance(#circular2, []),
|
| - (e) => e is NoSuchMethodError,
|
| - 'Should disallow circular redirection (const)');
|
| + Expect.throws(() => cm.newInstance(#circular2, []),
|
| + (e) => e is NoSuchMethodError,
|
| + 'Should disallow circular redirection (const)');
|
| }
|
|
|