catala/tests/test_enum/quick_pattern_2.catala
2021-01-06 18:42:22 +01:00

29 lines
382 B
Plaintext

@Article@
/*
new enum E:
-- Case1 content int
-- Case2
new enum F:
-- Case3
new scope A:
param x content E
param y content bool
param z content bool
new scope B:
param x content E
param y content bool
param z content bool
scope A:
def x := Case1 content 2
def y := x with Case1
def z := x with Case2
scope B:
def x := Case2
def y := x with Case3
*/