Fixed: #2486 AS3 switches detection in some cases

This commit is contained in:
Jindra Petřík
2025-07-20 11:55:37 +02:00
parent 4e62cddacf
commit 7076cdfc36
12 changed files with 816 additions and 63 deletions

View File

@@ -118,6 +118,7 @@ package
TestStringConcat;
TestStrings;
TestSwitch;
TestSwitchBig;
TestSwitchContinue;
TestSwitchComma;
TestSwitchDefault;

View File

@@ -0,0 +1,34 @@
package tests
{
public class TestSwitchBig
{
public function run():*
{
var k:* = 10;
switch (k)
{
case "A":
trace("A");
break;
case "B":
case "C":
trace("BC");
break;
case "D":
default:
case "E":
trace("D-default-E");
break;
case "F":
trace("F no break");
case "G":
trace("G");
break;
case "H":
trace("H last");
}
trace("after switch");
}
}
}