Chromium Code Reviews| Index: tests/language/call_nonexistent_constructor_test.dart |
| =================================================================== |
| --- tests/language/call_nonexistent_constructor_test.dart (revision 26732) |
| +++ tests/language/call_nonexistent_constructor_test.dart (working copy) |
| @@ -19,8 +19,10 @@ |
| int i = 0; |
| new A.foo(42); |
| try { |
| - new A.bar(foo()); // Arguments are not evaluated with NoSuchMethodError. |
| - } on NoSuchMethodError catch (e) { // Not 'on String catch ...' |
| + new A.bar(foo()); // Arguments are evaluated with NoSuchMethodError. |
|
srdjan
2013/08/27 20:07:48
I do not understand the comment. I think it should
regis
2013/08/27 20:37:22
Done.
|
| + } on NoSuchMethodError catch (e) { |
| + i = -1; |
| + } on String catch (e) { |
| i = 1; |
| } |
| Expect.equals(1, i); |