test for #2899
This commit is contained in:
parent
0d85e872d3
commit
2aefe23781
16
TestSuite/lambdas18.pas
Normal file
16
TestSuite/lambdas18.pas
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var i: integer;
|
||||
procedure p0<T>(p: T->());
|
||||
begin
|
||||
p(default(T));
|
||||
end;
|
||||
|
||||
procedure p1(v: byte);
|
||||
begin
|
||||
i := 1;
|
||||
end;
|
||||
procedure p1(a,b,c: word) := exit;
|
||||
|
||||
begin
|
||||
p0(p1);
|
||||
assert(i = 1);
|
||||
end.
|
||||
Loading…
Reference in a new issue