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

10 lines
215 B
Plaintext
Raw Normal View History

// Test a PascaLIGO function with more complex logic than function.ligo
2019-05-13 00:56:22 +04:00
function main (const i : int) : int is
var j : int := 0 ;
var k : int := 1 ;
begin
j := k + i ;
k := i + j ;
end with (k + j)