summaryrefslogtreecommitdiff
path: root/tests/test_method
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_method')
-rw-r--r--tests/test_method23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_method b/tests/test_method
new file mode 100644
index 0000000..0f79400
--- /dev/null
+++ b/tests/test_method
@@ -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
+
+;/