catala/tests/test_struct/simple.catala
2020-12-05 17:27:08 +01:00

18 lines
196 B
Plaintext

@Article@
/*
new struct S:
data x type int
data y type int
new scope A:
param s type S
param z type int
scope A:
def s := S {
-- x : 1
-- y : 2
}
def z := s.x + s.y
*/