summaryrefslogtreecommitdiff
path: root/tests/test_method_2.tnsl
blob: 56b3419d20def16636f40fe3f35bb4ca3b19db5e (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(69)
	return a._elsz
;/