diff options
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index 77e1777..7921513 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -1,12 +1,20 @@ -/; get_first (~uint8 str) [uint8] - return str{0} -;/ -/; main (int argc, ~~uint8 argv) [int] - int a, b - get_first(a + b, 1) +struct Test { + int i, j, + ~Test next +} - return get_first("1234") +/; method Test + /; init + a.b.c + a`.b.c + self.next.init(1) + self.next().a + ;/ ;/ +/; main + Test t + t.init() +;/ |