Chromium Code Reviews| Index: tests/language/regress_21793_test.dart |
| diff --git a/tests/language/issue20476_test.dart b/tests/language/regress_21793_test.dart |
| similarity index 59% |
| copy from tests/language/issue20476_test.dart |
| copy to tests/language/regress_21793_test.dart |
| index 35890a672dc6476dd2b20129c02a0d757dbfb945..a11eba59cc248ab30df4f484d53fbd9b075939ea 100644 |
| --- a/tests/language/issue20476_test.dart |
| +++ b/tests/language/regress_21793_test.dart |
| @@ -2,23 +2,17 @@ |
| // 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. |
| +// Regression test for issue 21793. |
| + |
| import 'package:expect/expect.dart'; |
| -foo() { |
| +test() { |
| try { |
| - try { |
| - return 1; |
| - } catch (e1) { |
| - } finally { |
| - return 3; |
| - } |
| - } catch (e2) { |
| - } finally { |
| - return 5; |
| + print(new A()(499)); /// 01: static type warning |
| + Expect.fail('Expected NoSuchMethodError'); |
| + } catch (e) { |
| } |
| } |
| - |
| - |
| main() { |
| - Expect.equals(5, foo()); |
| + test(); /// 01: continued |
|
floitsch
2014/12/09 14:00:15
Nit:
I prefer to be more minimalistic in what we r
Johnni Winther
2014/12/10 08:37:19
Done.
|
| } |