Bend/tests/golden_tests/run_file/recursive_bind.bend
2024-06-21 20:19:43 +02:00

12 lines
176 B
Plaintext

Result/bind (Result/Ok val) f = ((undefer f) val)
Result/bind err _ = err
Bar x = (Result/Err 0)
Foo x y = with Result {
ask x = (Bar x);
(Foo x y)
}
Main = (Foo "a" 0)