mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-09 01:29:02 +00:00
Fixed #1894 Switch inside loop
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -96,6 +96,7 @@ package
|
||||
TestStringConcat;
|
||||
TestStrings;
|
||||
TestSwitch;
|
||||
TestSwitchContinue;
|
||||
TestSwitchComma;
|
||||
TestSwitchDefault;
|
||||
TestSwitchIf;
|
||||
|
||||
33
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestSwitchContinue.as
vendored
Normal file
33
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestSwitchContinue.as
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestSwitchContinue
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var r:int = Math.random() % 10;
|
||||
|
||||
if (r > 5)
|
||||
{
|
||||
for(var i:int = 0; i < 10; i++)
|
||||
{
|
||||
switch(i)
|
||||
{
|
||||
case 0:
|
||||
trace("hello");
|
||||
break;
|
||||
case 1:
|
||||
trace("hi");
|
||||
break;
|
||||
case 2:
|
||||
trace("howdy");
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
trace("message shown");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user