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