aqua/aqua-src/import.aqua

32 lines
640 B
Plaintext
Raw Normal View History

-- import.aqua
module Import.Test
2021-09-07 08:09:48 +00:00
import foobar, FA as C, ExpSrv from "export.aqua"
2021-09-07 08:09:48 +00:00
use foo as f, FA as U from "export.aqua" as Exp
use foo as f, FA from "export.aqua" as Exp1
use "export.aqua"
import "gen/OneMore.aqua"
import OneMore as OM from "gen/OneMore.aqua"
2021-09-07 08:09:48 +00:00
export consts as main--, foobar as barfoo
func consts():
ExpSrv.log(C)
ExpSrv.log(Exp.U)
ExpSrv.log(Exp1.FA)
ExpSrv.log(Export.Test.FA)
func foo_wrapper() -> string:
z <- Exp.f()
q <- Export.Test.bar()
OneMore "hello"
OneMore.more_call()
OM "ohmygod"
OM.more_call()
OM.consume(q)
2021-09-07 08:09:48 +00:00
ExpSrv.log(C)
ExpSrv.log(Exp.U)
<- z