diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-04-30 14:06:58 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-04-30 14:06:58 -0400 |
commit | c625ed1cfe7f7ea4ab2a75a8a0a6a6772f86431c (patch) | |
tree | 55aab8a27a6cd3b0a979002afa6899a4bda94b74 /tests/block-test.tnsl | |
parent | 60f7c4f7272079e635010e464d8ce3a3a427f97f (diff) |
Destroy my own code by using goto
Diffstat (limited to 'tests/block-test.tnsl')
-rw-r--r-- | tests/block-test.tnsl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/block-test.tnsl b/tests/block-test.tnsl index 9f25526..6dde05f 100644 --- a/tests/block-test.tnsl +++ b/tests/block-test.tnsl @@ -46,15 +46,22 @@ /; module vec - ;struct Vector2 {x, y int} + ;struct Vector2 {int32 x, y} - /;method ~Vector2 + /;method Vector2 - /; operator + (v ~Vector2) + /; operator + (~Vector2 v) ;self.x += `v.x ;self.y += `v.y ;/ + /; operator + (int32 a) + ;self.x += a + ;self.y += a + ;/ + ;/ + ;struct FVector2 () {} + ;/
\ No newline at end of file |