aqua-playground/aqua/examples/nestedData.aqua
2022-04-03 20:43:04 +03:00

18 lines
357 B
Plaintext

data NestedType:
val: string
data NestedStruct:
one: NestedType
service Test("service"):
test1() -> NestedStruct
test2(arg1: NestedType, arg2: string) -> NestedStruct
func test3() -> NestedType:
res <- Test.test1()
<- res.one
func test() -> NestedStruct:
struct <- test3()
res <- Test.test2(struct, struct.val)
<- res