catala/tests/test_enum/bad/duplicate_case.catala
2021-01-23 20:49:17 -05:00

19 lines
273 B
Plaintext

@Article@
/*
new enum E:
-- Case1 content int
-- Case2 content bool
-- Case3
new scope A:
param e content E
param out content bool
scope A:
def out := match e with
-- Case1 of i : i = 0
-- Case2 of b : b
-- Case3 : false
-- Case3 : true
*/