mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 16:49:23 +02:00
* test for missing semicolon after fields in class declaration
git-svn-id: trunk@47487 -
This commit is contained in:
parent
c06a931d5b
commit
81344a6f5c
@ -105,6 +105,7 @@ type
|
|||||||
Procedure TestMethodWithDotFails;
|
Procedure TestMethodWithDotFails;
|
||||||
Procedure TestMethodWithDotOK;
|
Procedure TestMethodWithDotOK;
|
||||||
Procedure TestMethodFunctionWithDotOK;
|
Procedure TestMethodFunctionWithDotOK;
|
||||||
|
Procedure TestNoSemicolon;
|
||||||
Procedure TestClassMethodSimple;
|
Procedure TestClassMethodSimple;
|
||||||
Procedure TestClassMethodSimpleComment;
|
Procedure TestClassMethodSimpleComment;
|
||||||
Procedure TestConstructor;
|
Procedure TestConstructor;
|
||||||
@ -977,6 +978,14 @@ begin
|
|||||||
AssertNotNull('1 method resolution procedure',TPasMethodResolution(members[0]).ImplementationProc);
|
AssertNotNull('1 method resolution procedure',TPasMethodResolution(members[0]).ImplementationProc);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TTestClassType.TestNoSemicolon;
|
||||||
|
begin
|
||||||
|
StartClass;
|
||||||
|
fDecl.Add('X : Integer;');
|
||||||
|
fDecl.Add('Y : String');
|
||||||
|
ParseClass;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TTestClassType.TestClassMethodSimple;
|
procedure TTestClassType.TestClassMethodSimple;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user