mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 10:25:18 +00:00
Fixed: #2226 Incorrect decompilation of continue statements in some cases
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -130,6 +130,7 @@ package
|
||||
TestWhileBreak;
|
||||
TestWhileBreak2;
|
||||
TestWhileContinue;
|
||||
TestWhileSwitch;
|
||||
TestWhileTry;
|
||||
TestWhileTry2;
|
||||
TestXml;
|
||||
|
||||
35
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestWhileSwitch.as
vendored
Normal file
35
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestWhileSwitch.as
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestWhileSwitch
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var a:Boolean = true;
|
||||
var d:int = 5;
|
||||
var e:Boolean = true;
|
||||
var i:int = 0;
|
||||
while(i < 100)
|
||||
{
|
||||
trace("start");
|
||||
if(a)
|
||||
{
|
||||
trace("A");
|
||||
}
|
||||
else
|
||||
{
|
||||
switch(d)
|
||||
{
|
||||
case 1:
|
||||
trace("D1");
|
||||
}
|
||||
}
|
||||
if(e)
|
||||
{
|
||||
trace("E");
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user