about summary refs log tree commit diff
path: root/examples/1.5.src
blob: 6997d74b10f82b99b7c25e23c66cccae16488f19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import "!stdlib.src";

let x = () => i64 {
	printf("%d\n", 22);
	return 11;
};

let main = () => i64 {
	let i = 4;

	printf("%d\n", i);

	return x();
};

/*

Expected stdout:

4
22

Expected return: 11

*/