From 109dff8b5689fe9600353ef57921892d3c6e887a Mon Sep 17 00:00:00 2001 From: svenbarth Date: Sat, 17 Dec 2016 21:23:07 +0000 Subject: [PATCH] * allow nested procedures and functions in generic routines (and get rid of an untranslated error message :P ) git-svn-id: trunk@35148 - --- compiler/psub.pas | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/psub.pas b/compiler/psub.pas index 8c32bbcc8e..02883cf1a0 100644 --- a/compiler/psub.pas +++ b/compiler/psub.pas @@ -2044,10 +2044,7 @@ implementation for accessing locals in the parent procedure (PFV) } if current_procinfo.has_nestedprocs then begin - if (df_generic in current_procinfo.procdef.defoptions) then - Comment(V_Error,'Generic methods cannot have nested procedures') - else - if (po_inline in current_procinfo.procdef.procoptions) then + if (po_inline in current_procinfo.procdef.procoptions) then begin Message1(parser_h_not_supported_for_inline,'nested procedures'); Message(parser_h_inlining_disabled);