From 4b2451500b8f085321a041ebc13761a5102f0e6d Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 4 Aug 2022 16:34:55 +0200 Subject: case ; --- bootstrap/test.cff | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bootstrap/test.cff') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index d962b16..89a21eb 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -1,4 +1,4 @@ -typedef v3f ["!"[~-1] - as(int)30.0]f32; +typedef v3f ["!"[~-1] - as(i16)30.4f64]f32; enum Color { Red = 7, @@ -12,9 +12,9 @@ fn best() Color { fn hex(c Color) u32 { switch (c) { - case :Red do return 0xFF0000; - case :Green do return 0x00FF00; - case :Blue do return 0x0000FF; + case :Red; return 0xFF0000; + case :Green; return 0x00FF00; + case :Blue; return 0x0000FF; } } -- cgit v1.2.3