summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_method_3.tnsl19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_method_3.tnsl b/tests/test_method_3.tnsl
new file mode 100644
index 0000000..46dec79
--- /dev/null
+++ b/tests/test_method_3.tnsl
@@ -0,0 +1,19 @@
+struct Mock {
+ int i, j
+}
+
+/; method Mock
+
+ /; mul () [int]
+ int j = self.i * self.j
+ return self.i
+ ;/
+;/
+
+/; main [int]
+ Mock a
+ a.i = 69
+ a.j = 0
+ return a.mul()
+;/
+