as3hx icon indicating copy to clipboard operation
as3hx copied to clipboard

Cannot include expressions

Open jcward opened this issue 9 years ago • 0 comments

While including function definitions is supported, as3hx does not seem to support including expressions (which mxmlc does support):

Test.as:

package {
  public class Test {
    public function Test():void {
      include "some_expressions.as";
    }
  }
}

some_expressions.as:

trace("I am an included expression");
trace("Goodbye.");

Expected output .hx:

...
public function new():Void {
  trace("I am an included expression");
  trace("Goodbye.");
}

Actual output .hx:

...
public function new():Void {
  include;"some_expressions.as";
}

jcward avatar Nov 12 '15 20:11 jcward