summaryrefslogtreecommitdiff
path: root/tests/test_method_3.tnsl
blob: 46dec79f8b0e3f65a2f40975fc32d6e2efa3835d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()
;/