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