Bend/tests/snapshots/encode_pattern_match__adt_tup_era.bend.snap
2024-05-27 15:09:23 -03:00

20 lines
440 B
Plaintext

---
source: tests/golden_tests.rs
input_file: tests/golden_tests/encode_pattern_match/adt_tup_era.bend
---
Scott
(Foo) = λa (a λb λc (b λd λ* λ* d c))
(Main) = (Foo (Tuple/Pair 1 5))
(Tuple/Pair) = λa λb λc (c a b)
NumScott
(Foo) = λa (a λb switch b { 0: λc λd (c λe switch e { 0: λf λ* λ* f; _: *; } d); _: *; })
(Main) = (Foo (Tuple/Pair 1 5))
(Tuple/Pair) = λa λb λc (c Tuple/Pair/tag a b)
(Tuple/Pair/tag) = 0