Fixed #1195 this keyword in functions outside class

This commit is contained in:
Jindra Petřík
2021-02-08 10:39:34 +01:00
parent 47e9857acb
commit a8d1f2b293
12 changed files with 61 additions and 75 deletions

View 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++;
}