소스 검색

* use symbol type instead of sp_static flag to determine whether a final
symbol can only be assigned in the constructor or class constructor

git-svn-id: branches/jvmbackend@18611 -

Jonas Maebe 14 년 전
부모
커밋
3320fee51c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/htypechk.pas

+ 1 - 1
compiler/htypechk.pas

@@ -1098,7 +1098,7 @@ implementation
             else if vs.varspez=vs_final then
               begin
                 if (current_procinfo.procdef.owner=vs.owner) then
-                  if sp_static in vs.symoptions then
+                  if vs.typ=staticvarsym then
                     result:=current_procinfo.procdef.proctypeoption=potype_class_constructor
                   else
                     result:=current_procinfo.procdef.proctypeoption=potype_constructor;