mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 11:44:36 +00:00
Fixed #1195 this keyword in functions outside class
This commit is contained in:
18
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestThisOutsideClass.as
vendored
Normal file
18
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestThisOutsideClass.as
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package tests_classes
|
||||
{
|
||||
|
||||
public class TestThisOutsideClass
|
||||
{
|
||||
public var attrib : int = 0;
|
||||
public function run():void
|
||||
{
|
||||
helperFunc.call(this,"hello");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function helperFunc(a:String): void
|
||||
{
|
||||
trace(a);
|
||||
this.attrib++;
|
||||
}
|
||||
Reference in New Issue
Block a user