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);