mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-14 13:58:40 +03:00
19 lines
273 B
Plaintext
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
|
|
*/ |