Bend/tests/snapshots/compile_file_o_all__adt_option_and.bend.snap
2024-05-20 14:47:50 +02:00

24 lines
538 B
Plaintext

---
source: tests/golden_tests.rs
input_file: tests/golden_tests/compile_file_o_all/adt_option_and.bend
---
@Option/None = ((1 a) a)
@Option/Some = (a ((0 (a b)) b))
@Option/and = ((@Option/and__C3 a) a)
@Option/and__C0 = (b (a c))
& @Option/Some ~ ((a b) c)
@Option/and__C1 = (?((@Option/and__C0 (* (* @Option/None))) a) a)
@Option/and__C2 = (a ((@Option/and__C1 (a b)) b))
@Option/and__C3 = (?((@Option/and__C2 (* (* @Option/None))) a) a)
@main = c
& @Option/and ~ (a (b c))
& @Option/Some ~ (1 a)
& @Option/Some ~ (3 b)