From 59988a43079d0097151f57f941ea8f01a0b714d7 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 7 Aug 2022 07:19:07 +0200 Subject: Type:decl syntax and fix some diagnostics --- bootstrap/test.cff | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bootstrap/test.cff') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index 2a7a138..4d1393b 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -68,7 +68,7 @@ extern fn main (argc int, argv **u8) int { let p *const Vec2f = &x; printf("v = { %g, %g }\n", x.x, p.y); printf("mag = %g\n", x->mag()); - x->zero(); + Vec2f:zero(&x); printf("mag = %g\n", (&x)->mag()); let is []int = { [4] = 1, 2, [1 - 1] = 3 }; @@ -84,6 +84,7 @@ extern fn main (argc int, argv **u8) int { slice.#len; let const v Vec2f = {}; + ! v->zero(); ! v.x += 1; printf("sizeof(is) = %zu\n", sizeof(is)); -- cgit v1.2.3