From bbcfa43a59ce747ec6d20a27d1321500d5160854 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Tue, 17 Dec 2024 17:33:50 +0100 Subject: [PATCH] Restore CfOverride --- src/typing/typeloadFields.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/typing/typeloadFields.ml b/src/typing/typeloadFields.ml index 8d3704b417d..4b7868f6348 100644 --- a/src/typing/typeloadFields.ml +++ b/src/typing/typeloadFields.ml @@ -1248,6 +1248,7 @@ let create_method (ctx,cctx,fctx) c f cf fd p = end; let is_override = Option.is_some fctx.override in if (is_override && fctx.is_static) then invalid_modifier_combination fctx ctx.com fctx "override" "static" p; + if is_override then add_class_field_flag cf CfOverride; ctx.type_params <- params @ ctx.type_params; let args,ret = setup_args_ret ctx cctx fctx (fst f.cff_name) fd p in