diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2025-12-29 00:12:15 -0500 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2025-12-29 00:12:15 -0500 |
| commit | 3a98cbd4d96041e78cb8748d674e9d5ea311054e (patch) | |
| tree | 96f5758082dcc8e1d778a14281675fe945a96298 /tnslc/test.tnsl | |
| parent | 053876f61cc07c0d4a57b7b64a85e6b5fc23509a (diff) | |
find existing uninitialized instead of copying new
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index 59b337a..94c36f2 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -1,20 +1,6 @@ -struct str { - ~uint8 a -} - -/; method str - /; str_get() [~uint8] - return a - ;/ -;/ - -/; module moda - /; method str - /; str_set(~uint8 a) - self.a = a - ;/ - ;/ +/; main [int] + int a = 0 + return a ;/ - |