about summary refs log tree commit diff
path: root/examples/4.pry
blob: b8c48d29d103d6473705278c54b8ad39bd132041 (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.pry";

let main = () => i64 {
	let print_one = () => i64 {
		printf("%d\n", 1);
		return 4;
	};

	let y = print_one() + 2;

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

	return y;
};

/*

Expected stdout:

1
6

Expected return: 6

*/