OLD | NEW |
1 library; | 1 library; |
2 import self as self; | 2 import self as self; |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 | 4 |
5 static method main() → dynamic { | 5 static method main() → dynamic { |
6 #L1: | 6 #L1: |
7 switch(1) { | 7 switch(1) { |
8 #L2: | 8 #L2: |
9 case 1: | 9 case 1: |
10 { | 10 { |
11 { | 11 { |
12 "No fall-through error needed."; | 12 "No fall-through error needed."; |
13 break #L1; | 13 break #L1; |
14 ; | 14 ; |
15 } | 15 } |
16 } | 16 } |
17 #L3: | 17 #L3: |
18 case 2: | 18 case 2: |
19 { | 19 { |
20 { | 20 { |
21 "Fall-through error needed."; | 21 "Fall-through error needed."; |
22 if(true) { | 22 if(true) { |
23 break #L1; | 23 break #L1; |
24 } | 24 } |
25 } | 25 } |
26 throw core::_fallThroughError(); | 26 throw new core::FallThroughError::•(); |
27 } | 27 } |
28 #L4: | 28 #L4: |
29 case 3: | 29 case 3: |
30 { | 30 { |
31 try { | 31 try { |
32 "No fall-through error needed."; | 32 "No fall-through error needed."; |
33 } | 33 } |
34 finally { | 34 finally { |
35 break #L1; | 35 break #L1; |
36 } | 36 } |
37 } | 37 } |
38 #L5: | 38 #L5: |
39 case 4: | 39 case 4: |
40 { | 40 { |
41 try { | 41 try { |
42 "No fall-through error needed."; | 42 "No fall-through error needed."; |
43 break #L1; | 43 break #L1; |
44 } | 44 } |
45 finally { | 45 finally { |
46 } | 46 } |
47 } | 47 } |
48 #L6: | 48 #L6: |
49 case 5: | 49 case 5: |
50 { | 50 { |
51 try { | 51 try { |
52 "Fall-through error needed."; | 52 "Fall-through error needed."; |
53 } | 53 } |
54 finally { | 54 finally { |
55 } | 55 } |
56 throw core::_fallThroughError(); | 56 throw new core::FallThroughError::•(); |
57 } | 57 } |
58 #L7: | 58 #L7: |
59 case 10000: | 59 case 10000: |
60 { | 60 { |
61 "Should be last. No fall-through error, falling through allowed here."; | 61 "Should be last. No fall-through error, falling through allowed here."; |
62 } | 62 } |
63 } | 63 } |
64 } | 64 } |
OLD | NEW |