Hi, something weird is happening with my macros.
I have a interface with a autoBuild macro.
That macro adds and removes fields from the class.
I can't find what i changed but i start getting this error:
You cannot use @:build inside a macro : make sure that your enum is not used in macro
So i searched on internet and found this post by Jason:
http://jasono.co/2013/06/25/you-cannot-use-build-inside-a-macro-make-sure-that-your-enum-is-not-used-in-macro/I have wrapped the autoBuild:
#if !macro @:autoBuild(g4.macro.ClassBuilder.process()) #end
But now i can't access any of the builded fields!
In fact i can access them using untyped, and generated functions can access it to but i can't access to them:
trace(this.p_x); //test.Main has no field p_x
trace(untyped this.p_x);//works, and the generated code works.
And all this worked before.
I don't know what could be wrong, can anyone give me a clue of what can be giving this problem?