This commit is contained in:
Ivan Bondarev 2022-07-24 14:50:21 +02:00
parent 826463a9e0
commit d976420231
2 changed files with 26 additions and 1 deletions

View file

@ -33,6 +33,7 @@ namespace SyntaxVisitors.CheckingVisitors
}
public void AddProcHeader(procedure_header h)
{
if (h.name != null)
Add(h.name.meth_name);
if (h.template_args != null)
AddIdentList(h.template_args);

24
TestSuite/records24.pas Normal file
View file

@ -0,0 +1,24 @@
type
t1 = class
procedure p1;
begin
// Если описать так - не воспроизводится
// var p := procedure->exit();
var p: procedure;
p := ()->exit();
p();
end;
procedure p2;
// Обязательно вложенный тип
type r = record end;
begin
end;
end;
begin
var o := new t1;
o.p1;
end.