blob: fc21dc4cf0fcf16fbb34f702803be1d7686a75a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "std/io.toc";
s ::= fn(t:: Type) Type {
struct {
c :: t = 7 as t;
m: t;
}
}
puti ::= fn() {
}
puti ::= fn() {
}
main ::= fn() {
o: s(int);
x := o["m"];
y ::= o["c"];
}
|