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

Side by Side Diff: pkg/fasta/test/rasta/switch_fall_through.dart.dartk.expect

Issue 2650913007: Import rasta tests. (Closed)
Patch Set: Address comment. Created 3 years, 10 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
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 static method main() → dynamic {
6 #L1:
7 switch(1) {
8 #L2:
9 case 1:
10 {
11 "No fall-through error needed.";
12 break #L1;
13 ;
14 }
15 #L3:
16 case 2:
17 {
18 {
19 "Fall-through error needed.";
20 if(true) {
21 break #L1;
22 }
23 }
24 throw core::_fallThroughError();
25 }
26 #L4:
27 case 3:
28 try {
29 "No fall-through error needed.";
30 }
31 finally {
32 break #L1;
33 }
34 #L5:
35 case 4:
36 try {
37 "No fall-through error needed.";
38 break #L1;
39 }
40 finally {
41 }
42 #L6:
43 case 5:
44 {
45 try {
46 "Fall-through error needed.";
47 }
48 finally {
49 }
50 throw core::_fallThroughError();
51 }
52 #L7:
53 case 10000:
54 "Should be last. No fall-through error, falling through allowed here.";
55 }
56 }
OLDNEW
« no previous file with comments | « pkg/fasta/test/rasta/switch_fall_through.dart ('k') | pkg/fasta/test/rasta/switch_fall_through.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698