mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 01:36:09 +00:00
38 lines
450 B
ActionScript
38 lines
450 B
ActionScript
package tests
|
|
{
|
|
|
|
public class TestGotos7
|
|
{
|
|
|
|
public function run():void
|
|
{
|
|
|
|
for (var i:int = 0; i < 10; i++)
|
|
{
|
|
switch (i)
|
|
{
|
|
case 0:
|
|
trace("zero");
|
|
continue;
|
|
case 5:
|
|
trace("five");
|
|
break;
|
|
case 10:
|
|
trace("ten");
|
|
break;
|
|
case 1:
|
|
if (i == 7)
|
|
{
|
|
continue;
|
|
}
|
|
trace("one");
|
|
default:
|
|
trace("def");
|
|
}
|
|
trace("before loop end");
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
} |