blob: c933c6d53eb78ea878b35f95b03aac4981dbe2b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* Globals without initializers */
x: int;
y: u16;
/* Globals with initializers */
x′ := 42;
y′ := 69;
/* Globals with initializers and types */
x″: int = 42;
y″: u16 = 69;
/* Globals can be shadowed */
foo :: () int {
x := x + 1;
return x; /* 1 */
}
|