ligo/src/test/contracts/closure-3.ligo

13 lines
399 B
Plaintext
Raw Normal View History

// This might seem like it's covered by induction with closure-2.ligo
// But it exists to prevent a regression on the bug patched by:
// https://gitlab.com/ligolang/ligo/commit/faf3bbc06106de98189f1c1673bd57e78351dc7e
2019-08-21 18:34:34 +04:00
function foobar(const i : int) : int is
block {
const j : int = 3 ;
const k : int = 4 ;
function toto(const l : int) : int is
i + j + k + l;
} with toto(42)