Pārlūkot izejas kodu

Fully enable generic functions, procedures and methods by allowing inline specializations in procedure bodies as well.
Please note that this now also includes inline specializations of types in non-Delphi modes, thus removing a difference between modes Delphi and non-Delphi

pgentype.pas, inline_specialization_block_types:
+ add bt_body as valid block type

git-svn-id: trunk@32439 -

svenbarth 10 gadi atpakaļ
vecāks
revīzija
c81eda7a42
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      compiler/pgentype.pas

+ 1 - 1
compiler/pgentype.pas

@@ -31,7 +31,7 @@ uses
   symtype,symbase;
   symtype,symbase;
 
 
 const
 const
-  inline_specialization_block_types = [bt_type,bt_var_type,bt_const_type];
+  inline_specialization_block_types = [bt_type,bt_var_type,bt_const_type,bt_body];
 
 
 type
 type
   tspecializationstate = record
   tspecializationstate = record