tink_macro
                                
                                 tink_macro copied to clipboard
                                
                                    tink_macro copied to clipboard
                            
                            
                            
                        Exprs.eval and stored typed expressions does not work for Haxe 4.3 +
See tests.
Is this why my build macro is giving 'build failure' in Haxe 4.3?
import haxe.macro.Context;
import haxe.macro.Expr;
using StringTools;
class EnumBuilder {
        macro static public function build(types:ExprOf<Map<Int, String>>):Array<Field> {
                var t:Map<Int, String> = tink.macro.Exprs.eval(types);
                var fields = Context.getBuildFields()
                for (i => name in t) {
                        fields.push({
                                name: name,
                                doc: null,
                                meta: [],
                                access: [APublic],
                                kind: FVar(null, macro $v{i}),
                                pos: Context.currentPos(),
                        });
                }
                return fields;
        }
Hard to know for sure without more context, but yes, it's a possible cause.