Index: tests/language/async-try-catch-fail.dart |
diff --git a/pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart b/tests/language/async-try-catch-fail.dart |
similarity index 60% |
copy from pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart |
copy to tests/language/async-try-catch-fail.dart |
index 1b3d037c5bce3add4829e93b527bc5eb7f01f821..b6f65ca0d2cf1405bc6e058f3affd4caf3901ac0 100644 |
--- a/pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart |
+++ b/tests/language/async-try-catch-fail.dart |
@@ -2,14 +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. |
-library test_lib2_foo; |
- |
-export 'test_lib2_bar.dart'; |
- |
-class Foo { |
+import 'dart:async'; |
+foo() async { |
+ try { |
+ throw 4; |
+ } catch (e) { |
+ print("exception object follows"); |
+ print(e); |
+ } |
} |
main() { |
- print('hello world'); |
+ foo().then((r) {}); |
} |