mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-08-15 14:50:42 +03:00
16 lines
358 B
Plaintext
16 lines
358 B
Plaintext
---
|
|
source: tests/golden_tests.rs
|
|
input_file: tests/golden_tests/simplify_matches/flatten_with_terminal.bend
|
|
---
|
|
(Foo) = λa switch a { 0: λb let c = b; match c { A_t/A d: match d { B_t/B: B_t/B; }; }; _ e: λf let g = f; *; }
|
|
|
|
(main) = (Foo 2 (A_t/A B_t/B))
|
|
|
|
(A_t/A) = λa λb (b A_t/A/tag a)
|
|
|
|
(B_t/B) = λa (a B_t/B/tag)
|
|
|
|
(A_t/A/tag) = 0
|
|
|
|
(B_t/B/tag) = 0
|