import json2object.JsonParser;
@:enum abstract MyType(String) {
var Value = "test";
}
typedef Struct = {
@:default(1) var value : MyType;
}
class Main {
static function main() {
var p = new JsonParser<Struct>();
}
}
Compiling gives Main.hx:13: characters 16-34 : Int should be MyType,
error shouldn't be on line 13 but line 8.
Compiling gives
Main.hx:13: characters 16-34 : Int should be MyType
, error shouldn't be on line 13 but line 8.