mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-03-15 19:50:51 +00:00
21 lines
314 B
Plaintext
21 lines
314 B
Plaintext
module Closure declares *
|
|
|
|
export smth
|
|
|
|
service Srv("srv"):
|
|
noop: string -> ()
|
|
inside: -> ()
|
|
trial: -> ()
|
|
|
|
func smth() -> bool, string:
|
|
variable = "const"
|
|
co on "x":
|
|
Srv.trial()
|
|
closure = () -> string:
|
|
Srv.inside()
|
|
<- variable
|
|
|
|
on "other":
|
|
c <- closure()
|
|
Srv.noop(c)
|
|
<- true, "" |