mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 03:28:08 +00:00
Fixed #1936 AS3 - Parentheses around function definition call
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -72,6 +72,7 @@ package
|
||||
TestInc2;
|
||||
TestIncDec;
|
||||
TestInlineFunctions;
|
||||
TestInlineFunctions2;
|
||||
TestInnerFunctions;
|
||||
TestInnerFunctionScope;
|
||||
TestInnerIf;
|
||||
|
||||
@@ -5,7 +5,7 @@ package tests
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
trace("hello");
|
||||
trace("hello");
|
||||
}
|
||||
}
|
||||
}
|
||||
25
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestInlineFunctions2.as
vendored
Normal file
25
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestInlineFunctions2.as
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestInlineFunctions2
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
function f(a:int):int {
|
||||
return a + 1;
|
||||
}
|
||||
|
||||
var g:Function = function(a:int):int {
|
||||
return a + 1;
|
||||
};
|
||||
|
||||
var h:Function = function h2(a:int):int {
|
||||
return a + 1;
|
||||
};
|
||||
|
||||
(function(a:int):int {
|
||||
return a + 1;
|
||||
})(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ package tests
|
||||
{
|
||||
public function run() : *
|
||||
{
|
||||
var test:* = new function testFunc(param1:*, param2:int, param3:Array):Boolean
|
||||
var test:* = function testFunc(param1:*, param2:int, param3:Array):Boolean
|
||||
{
|
||||
return (param1 as TestClass2).attrib1 == 5;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user