as3hx
as3hx copied to clipboard
Unexpected } when included function is last in class
If an included function declaration is last in the class:
public class Foo {
public function Foo():void { }
include "shared_function.as";
}
It throws: Foo.as(4) : Unexpected }
If there is a function after it, it works fine:
public class Foo {
public function Foo():void { }
include "shared_function.as";
public function bar() { ... }
}
Workaround: don't let an included function be last in the class.