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

Unified Diff: tests/language/regress_21793_test.dart

Issue 787753005: Fix crash in typechecker (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update cf. comment Created 6 years 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
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_21793_test.dart
diff --git a/tests/language/issue20476_test.dart b/tests/language/regress_21793_test.dart
similarity index 60%
copy from tests/language/issue20476_test.dart
copy to tests/language/regress_21793_test.dart
index 35890a672dc6476dd2b20129c02a0d757dbfb945..b4eca96ced2d33c296865d8fff84e5c928e4872d 100644
--- a/tests/language/issue20476_test.dart
+++ b/tests/language/regress_21793_test.dart
@@ -2,23 +2,14 @@
// 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.
-import 'package:expect/expect.dart';
+// Regression test for issue 21793.
-foo() {
- try {
- try {
- return 1;
- } catch (e1) {
- } finally {
- return 3;
- }
- } catch (e2) {
- } finally {
- return 5;
- }
-}
+import 'package:expect/expect.dart';
+/* /// 01: static type warning, runtime error
+class A { call(x) => x; }
+*/ /// 01: continued
main() {
- Expect.equals(5, foo());
+ print(new A()(499));
}
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698