Fixed #1894 Switch inside loop

This commit is contained in:
Jindra Petřík
2023-01-11 20:56:14 +01:00
parent 37ca118d19
commit 29e2dc7ce3
8 changed files with 141 additions and 13 deletions

View File

@@ -96,6 +96,7 @@ package
TestStringConcat;
TestStrings;
TestSwitch;
TestSwitchContinue;
TestSwitchComma;
TestSwitchDefault;
TestSwitchIf;

View 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");
}
}
}
}
}