Macro.hx 340 B

12345678910111213141516171819
  1. package issue10673;
  2. class Macro {
  3. public static function build() {
  4. var fields = haxe.macro.Context.getBuildFields();
  5. for (field in fields) {
  6. switch field.kind {
  7. case FVar(_, e):
  8. field.kind = FVar(TPath({
  9. pack: ["std"],
  10. name: "StdTypes",
  11. sub: "Int"
  12. }), e);
  13. case _:
  14. }
  15. }
  16. return fields;
  17. }
  18. }