Forráskód Böngészése

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

git-svn-id: trunk@37043 -
maciej-izak 8 éve
szülő
commit
1f2225b805
1 módosított fájl, 1 hozzáadás és 1 törlés
  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
     Result := (LastMember <> nil) and
       // variables can't be declared directly after methods nor properties
       // variables can't be declared directly after methods nor properties
       // (visibility section or var keyword is required)
       // (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;
   end;
 
 
 begin
 begin