浏览代码

* properties are allowed as formal const parameters as well

florian 21 年之前
父节点
当前提交
ab316ac66f
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      compiler/htypechk.pas

+ 5 - 2
compiler/htypechk.pas

@@ -1089,7 +1089,7 @@ implementation
     function  valid_for_formal_const(p : tnode) : boolean;
       begin
         valid_for_formal_const:=is_constnode(p) or is_procsym_load(p) or (p.resulttype.def.deftype=formaldef) or
-          valid_for_assign(p,[valid_void,valid_const]);
+          valid_for_assign(p,[valid_void,valid_const,valid_property]);
       end;
 
 
@@ -1904,7 +1904,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.90  2004-05-24 21:04:31  florian
+  Revision 1.91  2004-05-24 21:24:40  florian
+    * properties are allowed as formal const parameters as well
+
+  Revision 1.90  2004/05/24 21:04:31  florian
     * fixed more formal const problems
 
   Revision 1.89  2004/05/24 20:39:41  florian