diff options
Diffstat (limited to 'tests/conditionals.bad')
-rw-r--r-- | tests/conditionals.bad | 7 |
1 files changed, 4 insertions, 3 deletions
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 { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | ; Match cases should only apply to literal values, for example `case 1 + 2` | 21 | ; Match cases should only apply to literal values, for example `case 1 + 2` |
22 | ; isn't allowed. | 22 | ; isn't allowed. They should generally convert to a lookup table. |
23 | match 4 * 2 { | 23 | match a = { |
24 | case 8 = "hello" | 24 | case 8 = "hello" |
25 | case 9 = "world" | 25 | case 9 = "world" |
26 | case = "what" | 26 | else = "what" |
27 | } | 27 | } |
28 | |||