Bend/tests/golden_tests/compile_file/switch_unscoped_lambda.bend
2024-05-15 00:25:46 +02:00

11 lines
116 B
Plaintext

lambda_out = @x @$y switch x {
0: $y
_: x-1
}
lambda_in = @x (switch x {
0: @x x
_: @$y x-1
} $y)
main = *