mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 08:47:14 +03:00
18 lines
196 B
Plaintext
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
|
|
*/ |