aqua/aqua-src/ret.aqua
2021-08-09 21:33:55 +03:00

15 lines
397 B
Plaintext

service Getter("test"):
createStr: u32 -> string
service OpO("op"):
identity: string -> string
-- a question mark means that this constant could be rewritten before this definition
const anotherConst ?= "default-str"
const uniqueConst ?= 5
func callConstant() -> []string, u8:
res: *string
res <- Getter.createStr(uniqueConst)
res <- OpO.identity(anotherConst)
<- res, 5