ligo/test/contracts/function-shared.ligo
2019-09-09 11:47:42 +02:00

9 lines
232 B
Plaintext

function inc ( const i : int ) : int is
block { skip } with i + 1
function double_inc ( const i : int ) : int is
block { skip } with inc(i + 1)
function foo ( const i : int ) : int is
block { skip } with inc(i) + double_inc(i)