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

Side by Side Diff: tests/language/catch_liveness_test.dart

Issue 1076473002: Fix static warning in language/catch_liveness_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 @AssumeDynamic @NoInline 7 @AssumeDynamic() @NoInline()
8 foo() => 1; 8 foo() => 1;
9 9
10 @AssumeDynamic @NoInline 10 @AssumeDynamic() @NoInline()
11 throwException() => throw 'x'; 11 throwException() => throw 'x';
12 12
13 main() { 13 main() {
14 var x = 10; 14 var x = 10;
15 var e2 = null; 15 var e2 = null;
16 try { 16 try {
17 var t = foo(); 17 var t = foo();
18 throwException(); 18 throwException();
19 print(t); 19 print(t);
20 x = 3; 20 x = 3;
21 } catch(e) { 21 } catch(e) {
22 Expect.equals(10, x); 22 Expect.equals(10, x);
23 e2 = e; 23 e2 = e;
24 } 24 }
25 Expect.equals(10, x); 25 Expect.equals(10, x);
26 Expect.equals('x', e2); 26 Expect.equals('x', e2);
27 } 27 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698