ligo/src/test/contracts/lambda2.religo
Pierre-Emmanuel Wulfman 89f2b44e7d Works also when the function parameter are passed in the rhs
Fix some religo contract
2020-03-04 10:35:34 +01:00

11 lines
241 B
Plaintext

type storage = unit;
/* Not supported yet:
let main (p:unit) storage = (fun x -> ()) ()
*/
let main2 = (z: unit, s: storage) =>
((f: (unit => unit)) => f())((z: unit) => unit);
let main = (x: (unit, storage)) => main2(x[0],x[1]);