mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-23 05:04:54 +00:00
Support for comma operator in switch case statements
This commit is contained in:
@@ -69,8 +69,9 @@ package
|
||||
TestRest;
|
||||
TestStrictEquals;
|
||||
TestStringConcat;
|
||||
TestStrings;
|
||||
TestStrings;
|
||||
TestSwitch;
|
||||
TestSwitchComma;
|
||||
TestSwitchDefault;
|
||||
TestTernarOperator;
|
||||
TestTry;
|
||||
|
||||
27
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestSwitchComma.as
vendored
Normal file
27
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestSwitchComma.as
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
package tests
|
||||
{
|
||||
public class TestSwitchComma
|
||||
{
|
||||
private static const X:int = 7;
|
||||
|
||||
public function run():*
|
||||
{
|
||||
var b:int = 5;
|
||||
|
||||
var a:String = "A";
|
||||
switch (a)
|
||||
{
|
||||
case "A":
|
||||
trace("is A");
|
||||
break;
|
||||
case "B":
|
||||
trace("is B");
|
||||
case TestSwitchComma.X,"C":
|
||||
trace("is C");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user