浏览代码

* if a variant is read/written, include the variants unit

git-svn-id: trunk@47459 -
florian 4 年之前
父节点
当前提交
bcdfd07bdd
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/ninl.pas

+ 4 - 1
compiler/ninl.pas

@@ -868,7 +868,10 @@ implementation
                   end;
                   end;
                 end;
                 end;
               variantdef :
               variantdef :
-                name:=procprefixes[do_read]+'variant';
+                begin
+                  name:=procprefixes[do_read]+'variant';
+                  include(current_module.moduleflags,mf_uses_variants);
+                end;
               arraydef :
               arraydef :
                 begin
                 begin
                   if is_chararray(para.left.resultdef) then
                   if is_chararray(para.left.resultdef) then