mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:29:09 +02:00
* test for method aliases (function)
git-svn-id: trunk@45419 -
This commit is contained in:
parent
7649e205aa
commit
45d08916f2
@ -102,6 +102,7 @@ type
|
|||||||
Procedure TestMethodSimpleComment;
|
Procedure TestMethodSimpleComment;
|
||||||
Procedure TestMethodWithDotFails;
|
Procedure TestMethodWithDotFails;
|
||||||
Procedure TestMethodWithDotOK;
|
Procedure TestMethodWithDotOK;
|
||||||
|
Procedure TestMethodFunctionWithDotOK;
|
||||||
Procedure TestClassMethodSimple;
|
Procedure TestClassMethodSimple;
|
||||||
Procedure TestClassMethodSimpleComment;
|
Procedure TestClassMethodSimpleComment;
|
||||||
Procedure TestConstructor;
|
Procedure TestConstructor;
|
||||||
@ -922,6 +923,16 @@ begin
|
|||||||
AssertNotNull('1 method resolution procedure',TPasMethodResolution(members[0]).ImplementationProc);
|
AssertNotNull('1 method resolution procedure',TPasMethodResolution(members[0]).ImplementationProc);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TTestClassType.TestMethodFunctionWithDotOK;
|
||||||
|
begin
|
||||||
|
AddMember('Function DoSomething.Stupid=me');
|
||||||
|
ParseClass;
|
||||||
|
AssertEquals('1 members',1,TheClass.members.Count);
|
||||||
|
AssertEquals('1 method resolution procedure',TPasMethodResolution,members[0].ClassType);
|
||||||
|
AssertEquals('Default visibility',visDefault,Members[0].Visibility);
|
||||||
|
AssertNotNull('1 method resolution procedure',TPasMethodResolution(members[0]).ImplementationProc);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TTestClassType.TestClassMethodSimple;
|
procedure TTestClassType.TestClassMethodSimple;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user