Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Unified Diff: test/codegen/try_catch.dart

Issue 1030063004: more care around generated names, fixes #60 #82 and #97 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/runtime/dart/_internal.js ('K') | « test/codegen/names.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/try_catch.dart
diff --git a/test/codegen/try_catch.dart b/test/codegen/try_catch.dart
index c67493f9c19e079b80ebabd1523994d05470cdc3..844d7f24d1e59e2e0064a2783467efb0c79c1f11 100644
--- a/test/codegen/try_catch.dart
+++ b/test/codegen/try_catch.dart
@@ -1,4 +1,8 @@
-main() {
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+foo() {
try {
throw "hi there";
} on String catch (e, t) {
@@ -6,4 +10,16 @@ main() {
rethrow;
}
}
-
+bar() {
+ try {
+ throw "hi there";
+ } catch (e, t) {
+ } on String catch (e, t) {
+ // unreachable
+ rethrow;
+ }
+}
+main() {
+ foo();
+ bar();
+}
« lib/runtime/dart/_internal.js ('K') | « test/codegen/names.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698