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