mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 00:20:13 +02:00
codetools: added test for var with nested class type
git-svn-id: trunk@50271 -
This commit is contained in:
parent
1e10c98414
commit
05335610bd
@ -18,6 +18,7 @@ type
|
||||
TCustomClass = class(TBaseClass)
|
||||
public type
|
||||
TCustomSubClass = class(TBaseSubClass{declaration:fdt_nestedclasses.TBaseClass.TBaseSubClass})
|
||||
public
|
||||
procedure DoSomething; override;
|
||||
end;
|
||||
end;
|
||||
@ -38,6 +39,10 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
|
||||
var
|
||||
s: TCustomClass.TCustomSubClass;
|
||||
begin
|
||||
s:=TCustomClass.TCustomSubClass{declaration:fdt_nestedclasses.TCustomClass.TCustomSubClass}.Create;
|
||||
s.DoSomething{declaration:fdt_nestedclasses.TCustomClass.TCustomSubClass.DoSomething};
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user