| Index: tests/language/regress_21793_test.dart
|
| diff --git a/tests/language/issue20476_test.dart b/tests/language/regress_21793_test.dart
|
| similarity index 60%
|
| copy from tests/language/issue20476_test.dart
|
| copy to tests/language/regress_21793_test.dart
|
| index 35890a672dc6476dd2b20129c02a0d757dbfb945..b4eca96ced2d33c296865d8fff84e5c928e4872d 100644
|
| --- a/tests/language/issue20476_test.dart
|
| +++ b/tests/language/regress_21793_test.dart
|
| @@ -2,23 +2,14 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -import 'package:expect/expect.dart';
|
| +// Regression test for issue 21793.
|
|
|
| -foo() {
|
| - try {
|
| - try {
|
| - return 1;
|
| - } catch (e1) {
|
| - } finally {
|
| - return 3;
|
| - }
|
| - } catch (e2) {
|
| - } finally {
|
| - return 5;
|
| - }
|
| -}
|
| +import 'package:expect/expect.dart';
|
|
|
| +/* /// 01: static type warning, runtime error
|
| +class A { call(x) => x; }
|
| +*/ /// 01: continued
|
|
|
| main() {
|
| - Expect.equals(5, foo());
|
| + print(new A()(499));
|
| }
|
|
|