diff --git a/packages/fcl-passrc/tests/tcclasstype.pas b/packages/fcl-passrc/tests/tcclasstype.pas index 672b1af202..1902dc2e05 100644 --- a/packages/fcl-passrc/tests/tcclasstype.pas +++ b/packages/fcl-passrc/tests/tcclasstype.pas @@ -105,6 +105,7 @@ type Procedure TestMethodWithDotFails; Procedure TestMethodWithDotOK; Procedure TestMethodFunctionWithDotOK; + Procedure TestNoSemicolon; Procedure TestClassMethodSimple; Procedure TestClassMethodSimpleComment; Procedure TestConstructor; @@ -977,6 +978,14 @@ begin AssertNotNull('1 method resolution procedure',TPasMethodResolution(members[0]).ImplementationProc); end; +procedure TTestClassType.TestNoSemicolon; +begin + StartClass; + fDecl.Add('X : Integer;'); + fDecl.Add('Y : String'); + ParseClass; +end; + procedure TTestClassType.TestClassMethodSimple; begin