ligo/src/test/contracts/expected/closure.mligo.expected

6 lines
138 B
Plaintext
Raw Normal View History

2020-06-05 12:51:37 +02:00
let test (k : int) : int =
2020-06-29 13:05:34 +00:00
let j : int = k + 5 in
let close : int -> int = fun (i : int) -> i + j in
let j : int = 20 in
close 20