build_visitor fixed, going to test it

This commit is contained in:
ProgramSnail 2023-04-25 21:21:36 +03:00
parent 5bf0c1bf48
commit c34523bd4f
23 changed files with 45468 additions and 45273 deletions

View file

@ -3,16 +3,13 @@ def test_variants = {
var variant1 = | 'a' | 2 | "hello"
var | val | err = f x
; val -> "something" // open variant as value in expr
; val -?> "something" // open variant as value in expr
; val -!> "nothing" // open variant as None in expr
match variant1 with
| 'a' -> "something"
| 2 -> "something"
| "hello" -> "something"
| a -> "Something"
| String.of str -> "something"
| Int.of i -> "someting"
| 2 -> "nothing"
| "hello" -> "nothing"
| 11 -> "nothing"
}