Some errors with genericbuilding enums

前端 未结 1 1604
难免孤独
难免孤独 2021-01-21 05:09

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 corete

相关标签:
1条回答
  • 2021-01-21 05:50

    Your macro has never run.

    Replace your build() function with the following to verify

        static function build():ComplexType {
            trace('build');
            return macro:Dynamic;
        }
    

    I suppose @:genericBuild only works for class

    0 讨论(0)
提交回复
热议问题