ligo/src/test/contracts/function-complex.ligo

10 lines
219 B
Plaintext

// Test a PascaLIGO function with more complex logic than function.ligo
function main (const i : int) : int is
begin
var j : int := 0 ;
var k : int := 1 ;
j := k + i ;
k := i + j ;
end with (k + j)