change over nullable wrapped

This commit is contained in:
Folkert 2021-06-27 01:35:15 +02:00
parent 71857e83d0
commit 8add147dcf
5 changed files with 230 additions and 152 deletions

View file

@ -1683,11 +1683,11 @@ fn binary_tree_double_pattern_match() {
foo = \btree ->
when btree is
Node (Node (Leaf x) _) _ -> x
_ -> 0
_ -> 1
main : I64
main =
foo (Node (Node (Leaf 32) (Leaf 0)) (Leaf 0))
foo (Node (Node (Leaf 32) (Leaf 2)) (Leaf 3))
"#
),
32,