| Index: tests/compiler/dart2js_extra/21724_test.dart
|
| diff --git a/pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart b/tests/compiler/dart2js_extra/21724_test.dart
|
| similarity index 66%
|
| copy from pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart
|
| copy to tests/compiler/dart2js_extra/21724_test.dart
|
| index 1b3d037c5bce3add4829e93b527bc5eb7f01f821..a578ca69c55cab3f93bdd3d4300c86c294c1c6fc 100644
|
| --- a/pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart
|
| +++ b/tests/compiler/dart2js_extra/21724_test.dart
|
| @@ -2,14 +2,13 @@
|
| // 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.
|
|
|
| -library test_lib2_foo;
|
|
|
| -export 'test_lib2_bar.dart';
|
| -
|
| -class Foo {
|
| -
|
| -}
|
| +// Regression test for issue 21724 - invalid call to local closure
|
|
|
| main() {
|
| - print('hello world');
|
| + foo(x) {}
|
| + try {
|
| + foo();
|
| + } catch (_) {}
|
| }
|
| +
|
|
|