heptagon/test/good/tuple_args.ept
Gwenaël Delaval bcba3569ed Added tests - types, constants, contracts
- ais.ept: tests inclusion of array types into structure types
- ce.ept: constant propagation
- contract.ept: contract constructs
- contract_automaton.ept: contract constructs and automata
2014-02-21 17:49:51 +01:00

16 lines
188 B
Plaintext

fun f(a,b:int) returns (u,v:int)
let
u = a + b;
v = a * b;
tel
fun h(a,b:int) returns (u,v:int)
let
(u,v) = f(f(a,b));
tel
node main() returns (u,v:int)
let
(u,v) = h((1,2))
tel