diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-05-06 04:52:02 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-05-06 04:52:02 -0400 |
| commit | 8ffb50a4bc61b51952aa78da0c6e1f002f09e1be (patch) | |
| tree | d55aabf3bc0638dc1eec0725e086ae5972ea1385 /tnslc/test.tnsl | |
| parent | 722d5ace0290a2d1cace8a1be5b4c5b0ab3137ec (diff) | |
[tnslc] better calling, issue with member setting on refs
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index 66091f7..58ba226 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -4,21 +4,16 @@ struct A { } /; method A - /; get_a [int] - return self.a + /; add_one + int a = self.a + 1 ;/ ;/ -/; module mod - /; func1 [int] - return 4 - ;/ -;/ - -/; main (int argc, ~~uint8 argv) [int] - asm "mov r10, rdi" - asm "mov r11, rsi" - - return argc +/; main (uint argc, ~~uint8 argv) [uint] + A a + a.a = 1 + a.b = 2 + a.add_one() + return a.a + a.b ;/ |