summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2025-12-29 00:12:15 -0500
committerKai Gunger <kgunger12@gmail.com>2025-12-29 00:12:15 -0500
commit3a98cbd4d96041e78cb8748d674e9d5ea311054e (patch)
tree96f5758082dcc8e1d778a14281675fe945a96298 /tnslc/test.tnsl
parent053876f61cc07c0d4a57b7b64a85e6b5fc23509a (diff)
find existing uninitialized instead of copying new
Diffstat (limited to 'tnslc/test.tnsl')
-rw-r--r--tnslc/test.tnsl20
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
;/
-