mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 11:54:36 +00:00
Fixed: #2486 AS3 switches detection in some cases
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -118,6 +118,7 @@ package
|
||||
TestStringConcat;
|
||||
TestStrings;
|
||||
TestSwitch;
|
||||
TestSwitchBig;
|
||||
TestSwitchContinue;
|
||||
TestSwitchComma;
|
||||
TestSwitchDefault;
|
||||
|
||||
34
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestSwitchBig.as
vendored
Normal file
34
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestSwitchBig.as
vendored
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user