From 99d542215f767bd715d16c78abd853cd5f460d94 Mon Sep 17 00:00:00 2001 From: Jaime Humberto Macias Bustamante Date: Thu, 23 Oct 2025 11:10:14 -0700 Subject: [PATCH] Update CustomClassMacro.hx --- hscript/macros/CustomClassMacro.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/hscript/macros/CustomClassMacro.hx b/hscript/macros/CustomClassMacro.hx index eed4b85..4bbfcd1 100644 --- a/hscript/macros/CustomClassMacro.hx +++ b/hscript/macros/CustomClassMacro.hx @@ -507,6 +507,7 @@ class CustomClassMacro { Context.defineModule(cl.module, [shadowClass], null); } + // Based on Polymod HScriptClass Macro: https://github.com/larsiusprime/polymod/blob/develop/polymod/hscript/_internal/HScriptedClassMacro.hx#L686 private static function overrideField(field:ClassField, cl:ClassType, ?type:haxe.macro.Type, ?params:Map):Array { if(type == null) type = field.type;