From dadc10658ccc475d2f016d5c360d1172d1d66842 Mon Sep 17 00:00:00 2001 From: Sven/Sarah Barth Date: Sun, 29 May 2022 13:55:57 +0200 Subject: [PATCH] * set the correct symtable level for the invoke procdef --- compiler/procdefutil.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/procdefutil.pas b/compiler/procdefutil.pas index d800f0a6fd..d563d0dcac 100644 --- a/compiler/procdefutil.pas +++ b/compiler/procdefutil.pas @@ -317,6 +317,8 @@ implementation invokedef.struct:=result; invokedef.visibility:=vis_public; invokedef.procsym:=cprocsym.create(method_name_funcref_invoke_decl); + invokedef.parast.symtablelevel:=normal_function_level; + invokedef.localst.symtablelevel:=normal_function_level; include(invokedef.procoptions,po_virtualmethod); exclude(invokedef.procoptions,po_staticmethod); exclude(invokedef.procoptions,po_classmethod);