Some errors with genericbuilding enums
问题 Solved For a first ever macro to write this wasnt the easiest. But I learned a lot, much kudo's to Gama11 who pointed me in the right direction, and the coreteam for such a thing of beauty: Haxe. And I even added some slick doc field strings, so you get nice info during autocompletion. Main.hx var e1:Either<String, Int, Bool> = Either3._1('test'); var e2:Either<String, Int, Bool> = Either3._2(1); var e3:Either<String, Int, Bool> = Either3._3(true); var error:Either<String, Int, Bool> =