소스 검색

fcl-passrc: paswrite: omit redundant visibility declaration for properties (which was treated as variable)

git-svn-id: trunk@37043 -
maciej-izak 8 년 전
부모
커밋
1f2225b805
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-passrc/src/paswrite.pp

+ 1 - 1
packages/fcl-passrc/src/paswrite.pp

@@ -249,7 +249,7 @@ var
     Result := (LastMember <> nil) and
       // variables can't be declared directly after methods nor properties
       // (visibility section or var keyword is required)
-      (Member is TPasVariable) and not (LastMember is TPasVariable);
+      ((Member is TPasVariable) and not (Member is TPasProperty)) and not (LastMember is TPasVariable);
   end;
 
 begin