Bend/tests/golden_tests/compile_file_o_all/num_pattern_with_var.bend

9 lines
226 B
Plaintext

# We had a bug where this gave the incorrect error: "Expected a number but found 'a' at definition 'Foo'."
type bool = false | true
(Foo bool/false a) = 0
(Foo bool/true 0) = 0
(Foo bool/true n) = n
Main = (Foo bool/true 3)