hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit f6fa21c58284f9a34d7f2a9ec5519537dffa0be4
parent 994e0ebfdb87796b0d02bd267eb9846ace2e999a
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 29 Sep 2023 22:19:57 -0400

hare::parse+test: add more switch/match case tests

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/+test/expr_test.ha | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/hare/parse/+test/expr_test.ha b/hare/parse/+test/expr_test.ha @@ -262,6 +262,8 @@ return y; case 1337 => let x = 0; + case => void; + case => abort(); case => defer x; }; @@ -276,12 +278,12 @@ return y; case foo => return bar; - case let foo: int => + case *int => return bar; case foo::bar => return baz; case null => void; - case *int => void; + case => abort(); }; match (x) { case let s: matchdata =>