LambdaInferenceTAsResult.pas
This commit is contained in:
parent
47abf90efa
commit
5f03b204fa
5
TestSuite/LambdaInferenceTAsResult.pas
Normal file
5
TestSuite/LambdaInferenceTAsResult.pas
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
function Inv<T>(p: ()->T): T := p();
|
||||||
|
|
||||||
|
begin
|
||||||
|
Assert(Inv(()->1)=1)
|
||||||
|
end.
|
||||||
Loading…
Reference in a new issue