浏览代码

* object constructors/methods obviously can also read the object

git-svn-id: trunk@6022 -
Jonas Maebe 18 年之前
父节点
当前提交
3d99dcc178
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncal.pas

+ 1 - 1
compiler/ncal.pas

@@ -2149,7 +2149,7 @@ implementation
                   ) then
                  { a constructor will and a method may write something to }
                  { the fields                                             }
-                 set_varstate(methodpointer,vs_written,[])
+                 set_varstate(methodpointer,vs_readwritten,[])
                else if ((hpt.nodetype=loadn) and
                      (methodpointer.resultdef.typ=classrefdef)) then
                    set_varstate(methodpointer,vs_read,[])