New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata cannot be extracted from fields and statics #50
Comments
It's weird, looks like a bug in the compiler ? |
Ok I've managed to reproduce, it's due to |
Best option would be to expose the dce flag in the GUI, |
In any case, it's an haxe compiler issue now ;) |
Closing the issue, feel free to reopen if needed |
Yeah, I agree that it's a compiler issue. It might be nice to simply list the compiler flags somewhere on try.haxe for information. I could have reproduced the problem immediately in the haxe compiler if I had known that the Dunno, this instance might be a very edge-case-issue. Anyhow, thanks for your help :) |
I have the following sample (from http://haxe.org/manual/lf-metadata.html, slightly modified)
Compiling with Haxe to JavaScript and running with Node gives the following output:
Similarly, compiling with Haxe and running with Neko gives the following output:
On try.haxe.org running the code (http://try.haxe.org/#8cFb8) gives the following output:
That is, the result from
Meta.getType(MyClass)
is correct but the result fromMeta.getFields(MyClass)
andMeta.getStatics(MyClass)
is incorrect.The text was updated successfully, but these errors were encountered: