ligo/src/test/contracts/double_main.ligo
John David Pressman 62fe576bc9 Revert "Merge branch 'fix/pascal-tuples-in-doc' into 'dev'"
This reverts merge request !437
2020-02-20 05:25:30 +00:00

12 lines
328 B
Plaintext

type parameter is unit
type storage is int
type return is list (operation) * storage
function main(const p : parameter; const s : storage) : return is
((nil : list(operation)), s+1)
function main (const p : parameter; const s : storage) : return is
block {
const ret : return = main (p, s)
} with (ret.0, ret.1 + 1)