blob: e5ed8de6f4e7c0c7a7fa782a31fa4b5e596a078b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
struct cnt {
int n;
static int make() { return 3; }
int get() { return this.n; }
};
fn main() {
[]int xs = new([]int);
push(xs, 4); push(xs, 5);
put_n(len(xs)); put_c(10);
put_n(pop(xs)); put_c(10);
put_n(cnt.make()); put_c(10);
return 0;
}
|