summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/simple.tnsl')
-rw-r--r--tnslc/simple.tnsl11
1 files changed, 4 insertions, 7 deletions
diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl
index 8af8a68..0a419c8 100644
--- a/tnslc/simple.tnsl
+++ b/tnslc/simple.tnsl
@@ -3,7 +3,8 @@
{}uint8 str2 = "abcd"
/; method Test
- /; wamba
+ /; wamba [int]
+ return self.i + self.j
;/
;/
@@ -11,10 +12,6 @@ struct Test {
int i, j, k
}
-/; call_me (int i, ~int j) [int]
- return i + j`
-;/
-
/; main (int argc, ~~uint argv) [int]
# On windows, the first two arguments are passed in RCX and RDX, so we need to
# update their positions here or else tnsl will have garbage values in r8 and r9
@@ -35,8 +32,8 @@ struct Test {
argc = 90
;/
- m.j = call_me(m.j, ~argc)
+ m.i = argc
# return 3
- return m.j
+ return m.wamba()
;/