|
@@ -232,6 +232,7 @@ type
|
|
Procedure TestTwoDeprecatedFieldsCombinedPlatform;
|
|
Procedure TestTwoDeprecatedFieldsCombinedPlatform;
|
|
Procedure TestFieldAndMethod;
|
|
Procedure TestFieldAndMethod;
|
|
Procedure TestFieldAnd2Methods;
|
|
Procedure TestFieldAnd2Methods;
|
|
|
|
+ Procedure TestVisibilityAndMethods;
|
|
Procedure TestNested;
|
|
Procedure TestNested;
|
|
Procedure TestNestedDeprecated;
|
|
Procedure TestNestedDeprecated;
|
|
Procedure TestNestedPlatform;
|
|
Procedure TestNestedPlatform;
|
|
@@ -1818,6 +1819,16 @@ begin
|
|
AssertEquals('Method 2 result type','Integer', P.FuncType.ResultEl.ResultType.Name);
|
|
AssertEquals('Method 2 result type','Integer', P.FuncType.ResultEl.ResultType.Name);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TTestRecordTypeParser.TestVisibilityAndMethods;
|
|
|
|
+begin
|
|
|
|
+ ParseType('record '+slineBreak+
|
|
|
|
+ 'private '+slineBreak+
|
|
|
|
+ 'function something: integer; '+slineBreak+
|
|
|
|
+ 'public '+slineBreak+
|
|
|
|
+ 'x : integer; '+slineBreak+
|
|
|
|
+ 'end',TPasRecordType,'');
|
|
|
|
+end;
|
|
|
|
+
|
|
procedure TTestRecordTypeParser.TestNested;
|
|
procedure TTestRecordTypeParser.TestNested;
|
|
begin
|
|
begin
|
|
TestFields(['x : integer;','y : record',' z : integer;','end'],'',False);
|
|
TestFields(['x : integer;','y : record',' z : integer;','end'],'',False);
|