Explorar o código

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

git-svn-id: trunk@37043 -
maciej-izak %!s(int64=8) %!d(string=hai) anos
pai
achega
1f2225b805
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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