ChaiScript/unittests/3.x/memberscope.chai
Jonathan Turner c73f16fdfe Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
2012-05-17 10:14:50 -07:00

13 lines
175 B
ChaiScript

attr Vector3::x
attr Vector3::y
attr Vector3::z
def Vector3::Vector3(x, y, z) {
this.x = x
this.y = y
this.z = z
}
var v = Vector3(1,2,3);
assert_equal(1, v.x);