2024-01-24 20:16:10 +03:00
|
|
|
---
|
|
|
|
source: tests/golden_tests.rs
|
2024-05-15 01:25:46 +03:00
|
|
|
input_file: tests/golden_tests/encode_pattern_match/match_adt_unscoped_in_arm.bend
|
2024-01-24 20:16:10 +03:00
|
|
|
---
|
2024-05-18 15:01:20 +03:00
|
|
|
Scott
|
2024-05-10 22:42:32 +03:00
|
|
|
(main) = λ* λ$x $x
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(bool/T) = λa λ* a
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(bool/F) = λ* λb b
|
2024-05-18 15:01:20 +03:00
|
|
|
|
|
|
|
NumScott
|
|
|
|
(main) = λ* λ$x $x
|
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(bool/T) = λa (a bool/T/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(bool/F) = λa (a bool/F/tag)
|
|
|
|
|
|
|
|
(bool/T/tag) = 0
|
|
|
|
|
|
|
|
(bool/F/tag) = 1
|