From c9db27abbbfa80a79515e26efaae9012d3275404 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 18 Jun 2024 19:29:14 +0200 Subject: Fix some syntax issues with match cases --- tests/conditionals.bad | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/conditionals.bad b/tests/conditionals.bad index 71d49c3..b1c6a89 100644 --- a/tests/conditionals.bad +++ b/tests/conditionals.bad @@ -19,9 +19,10 @@ if true != false { } ; Match cases should only apply to literal values, for example `case 1 + 2` -; isn't allowed. -match 4 * 2 { +; isn't allowed. They should generally convert to a lookup table. +match a = { case 8 = "hello" case 9 = "world" - case = "what" + else = "what" } + -- cgit v1.2.1