Flash Haxe接口使用本机getter/setter编译到swc
如何从支持本机getter/setter的haxe源接口编译swc。当我使用:Flash Haxe接口使用本机getter/setter编译到swc,flash,interface,haxe,Flash,Interface,Haxe,如何从支持本机getter/setter的haxe源接口编译swc。当我使用: interface ITest<T> { #if flash @:getter(x) function gx():Int; @:setter(x) function sx(_v:Int):Int; #else #end var x(get_x, set_x):Int; } public interface ITest { function get gx () : int;
interface ITest<T>
{
#if flash
@:getter(x) function gx():Int;
@:setter(x) function sx(_v:Int):Int;
#else
#end
var x(get_x, set_x):Int;
}
public interface ITest
{
function get gx () : int;
function set sx (_v:int) : void;
function add (_v:Object) : void;
}