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

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: Add test. 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 59%
copy from tests/language/issue20476_test.dart
copy to tests/language/regress_21793_test.dart
index 35890a672dc6476dd2b20129c02a0d757dbfb945..a11eba59cc248ab30df4f484d53fbd9b075939ea 100644
--- a/tests/language/issue20476_test.dart
+++ b/tests/language/regress_21793_test.dart
@@ -2,23 +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.
+// Regression test for issue 21793.
+
import 'package:expect/expect.dart';
-foo() {
+test() {
try {
- try {
- return 1;
- } catch (e1) {
- } finally {
- return 3;
- }
- } catch (e2) {
- } finally {
- return 5;
+ print(new A()(499)); /// 01: static type warning
+ Expect.fail('Expected NoSuchMethodError');
+ } catch (e) {
}
}
-
-
main() {
- Expect.equals(5, foo());
+ test(); /// 01: continued
floitsch 2014/12/09 14:00:15 Nit: I prefer to be more minimalistic in what we r
Johnni Winther 2014/12/10 08:37:19 Done.
}
« 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