blob: f4a1cd6c5537abc07351e27ec9a034f6c938bb6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "std/io.toc", io;
Foo ::= struct (n ::= 12) {
x ::= n;
};
Bar ::= struct {
a ::= -1243.3;
};
main ::= fn() {
io.puti(Foo(3).x);
io.puti(Foo().n);
io.puti(Bar.a as int);
};
|