summaryrefslogtreecommitdiff
path: root/tests/test_method.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_method.tnsl')
-rw-r--r--tests/test_method.tnsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_method.tnsl b/tests/test_method.tnsl
new file mode 100644
index 0000000..0f79400
--- /dev/null
+++ b/tests/test_method.tnsl
@@ -0,0 +1,23 @@
+struct Vector {
+ ~void data,
+ int
+ size,
+ count,
+ _el_sz
+}
+
+/; method Vector
+
+ /; init
+ self.size = 69
+ ;/
+;/
+
+/; main [int]
+
+ Vector a
+ a.init()
+
+ return a.size
+
+;/