mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
change over nullable wrapped
This commit is contained in:
parent
71857e83d0
commit
8add147dcf
5 changed files with 230 additions and 152 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue