This commit is contained in:
parent
826463a9e0
commit
d976420231
|
|
@ -33,7 +33,8 @@ namespace SyntaxVisitors.CheckingVisitors
|
||||||
}
|
}
|
||||||
public void AddProcHeader(procedure_header h)
|
public void AddProcHeader(procedure_header h)
|
||||||
{
|
{
|
||||||
Add(h.name.meth_name);
|
if (h.name != null)
|
||||||
|
Add(h.name.meth_name);
|
||||||
if (h.template_args != null)
|
if (h.template_args != null)
|
||||||
AddIdentList(h.template_args);
|
AddIdentList(h.template_args);
|
||||||
if (h.parameters != null)
|
if (h.parameters != null)
|
||||||
|
|
|
||||||
24
TestSuite/records24.pas
Normal file
24
TestSuite/records24.pas
Normal 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.
|
||||||
Loading…
Reference in a new issue