* Last field before end does not need a semicolon

git-svn-id: trunk@47496 -
(cherry picked from commit 185048c631)
This commit is contained in:
michael 2020-11-20 18:13:46 +00:00 committed by Florian Klämpfl
parent adb4af12a0
commit 388ffe420e
2 changed files with 2 additions and 1 deletions

View File

@ -7308,6 +7308,8 @@ begin
if not (AType.ObjKind in okWithFields) then
ParseExc(nParserNoFieldsAllowed,SParserNoFieldsAllowedInX,[ObjKindNames[AType.ObjKind]]);
ParseClassFields(AType,CurVisibility,CurSection=stClassVar);
if Curtoken=tkEnd then // case Ta = Class x : String end;
UngetToken;
HaveClass:=False;
end;
stClassVar:

View File

@ -981,7 +981,6 @@ end;
procedure TTestClassType.TestNoSemicolon;
begin
StartClass;
fDecl.Add('X : Integer;');
fDecl.Add('Y : String');
ParseClass;
end;