2019-05-12 20:56:22 +00:00
|
|
|
function main (const i : int) : int is
|
2020-02-10 19:27:58 +01:00
|
|
|
block {
|
|
|
|
var result : int := 23;
|
|
|
|
if i = 2 then result := 42 else result := 0
|
|
|
|
} with result
|
2019-10-18 14:32:58 +02:00
|
|
|
|
|
|
|
function foo (const b : bool) : int is
|
2020-02-10 19:27:58 +01:00
|
|
|
block {
|
|
|
|
const x : int = 41
|
|
|
|
} with 1 + (if b then x else main (x))
|