class EricsTestModule extends Module {
// ...
public function foo():Void {
trace(scriptCall('bar')); // This works fine
trace(this.scriptCall('bar')); // This throws an EInvalidAccess error
}
public function bar():Void {
return "Hello, world!";
}
}
Pretty sure it's an error specific to the implementation of this.