mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-03-16 04:00:50 +00:00
22 lines
319 B
Plaintext
22 lines
319 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, "", 12
|