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