AS3 Fix and/or in try clause

This commit is contained in:
Jindra Petřík
2021-02-05 18:30:26 +01:00
parent 34b69e83c3
commit 0e813bd896
9 changed files with 85 additions and 133 deletions

View File

@@ -77,6 +77,7 @@ package
TestSwitchDefault;
TestTernarOperator;
TestTry;
TestTryIf;
TestTryReturn;
TestTryReturn2;
TestUsagesTry;

View File

@@ -0,0 +1,23 @@
package tests
{
public class TestTryIf
{
public function run():*
{
var a:int = Math.random();
try
{
if (a > 5 && a < 50)
{
trace("in limits");
}
trace("next");
}
catch (e:Error)
{
trace("in catch");
}
}
}
}