hxparse
hxparse copied to clipboard
New Error regards statics on generic Classes
src/hxparse/Parser.hx:154: lines 154-161 : A generic class can't have static fields
Haxe build https://github.com/HaxeFoundation/haxe/commit/0c89b91432aa0687f569ec4aa035fd855ac639eb
There's more to this, build-interp.hxml
seems to work fine.
I think this is if it is in the compilation unit in a macro context.
I am having the same problem
hxparse/4.0.1/haxelib/src/hxparse/Parser.hx:154: lines 154-161 : A generic class can't have static fields
try something like
#if !macro
...
#end
as a workaround
Thanks @0b1kn00b , though I do not know which part of my code I would use that.
It really depends on how you're set up. You have to get your head around the macro context build step a bit for it to make sense.