Update CustomClassMacro.hx

This commit is contained in:
Jaime Humberto Macias Bustamante
2025-10-23 11:10:14 -07:00
parent ec01692883
commit 99d542215f
+1
View File
@@ -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<String, haxe.macro.Type>):Array<Field> {
if(type == null)
type = field.type;