소스 검색

* Apply RTTI directive status to symbol

Ryan Joseph 2 년 전
부모
커밋
48f422020a
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      compiler/pdecobj.pas
  2. 3 1
      compiler/ptype.pas

+ 3 - 0
compiler/pdecobj.pas

@@ -1657,6 +1657,9 @@ implementation
               end
             else
               olddef:=nil;
+              
+            { apply $RTTI directive to current object }
+            current_structdef.apply_rtti_directive(current_module.rtti_directive);
 
             { parse and insert object members }
             parse_object_members;

+ 3 - 1
compiler/ptype.pas

@@ -1052,7 +1052,9 @@ implementation
          { in non-Delphi modes we need a strict private symbol without type
            count and type parameters in the name to simply resolving }
          maybe_insert_generic_rename_symbol(n,genericlist);
-
+         { apply $RTTI directive to current object }
+         current_structdef.apply_rtti_directive(current_module.rtti_directive);
+         
          if m_advanced_records in current_settings.modeswitches then
            begin
              parse_record_members(recsym);