2021-08-31 10:05:26 +00:00
|
|
|
-- import.aqua
|
|
|
|
module Import.Test
|
2021-09-07 08:09:48 +00:00
|
|
|
import foobar, FA as C, ExpSrv from "export.aqua"
|
2021-08-31 10:05:26 +00:00
|
|
|
|
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
|
2021-08-31 10:05:26 +00:00
|
|
|
|
|
|
|
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)
|
2021-08-31 10:05:26 +00:00
|
|
|
|
|
|
|
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)
|
2021-08-31 10:05:26 +00:00
|
|
|
<- z
|