diff --git a/tests/Vector.lua b/tests/Vector.lua new file mode 100644 index 0000000..26a2cc8 --- /dev/null +++ b/tests/Vector.lua @@ -0,0 +1,6 @@ +type f64 = number +type vec3 = (x: f64, y: f64, z: f64) -> {x: f64, y: f64, z: f64} +local Vector3: vec3 = Vector3 + +local v3 = Vector3(-10, 30, 50) +print((`{("\n"):rep(3)} x=%d,y=%d,z=%d {("\n"):rep(3)}`):format(v3.x, v3.y, v3.z)) \ No newline at end of file