Fixed: #270 AS decompilation - comma in ternar

This commit is contained in:
Jindra Petřík
2021-03-13 20:32:24 +01:00
parent b84ccc7005
commit 98703e4e5a
11 changed files with 212 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ package
TestChainedAssignments;
TestComplexExpressions;
TestContinueLevels;
TestComma;
TestCompoundAssignments;
TestDecl2;
TestDeclarations;

View File

@@ -0,0 +1,13 @@
package tests
{
public class TestComma
{
public function run():*
{
var a:int = 5;
var b:int = 0;
trace(a > 4 ? (b = 5, a) : 35);
}
}
}