-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
13 changed files
with
148 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
aqua Job declares * | ||
|
||
export aaa, bbb | ||
use "declare.aqua" | ||
|
||
data Peer: | ||
id: string | ||
export timeout | ||
|
||
func aaa() -> Peer: | ||
peer1 = Peer(id = "123") | ||
peer2 = Peer(id = peer1.id) | ||
<- peer2 | ||
data Worker: | ||
field: string | ||
|
||
data BrokenStruct: | ||
fff: UnknownType | ||
|
||
alias BrokenAlias: str3ng | ||
|
||
ability BrokenAbility: | ||
fff: str4ng | ||
|
||
const BROKEN_CONST = UNKNOWN_CONST | ||
|
||
func bbb() -> string: | ||
<- 323 | ||
|
||
func ccc() -> Peer: | ||
peer1 = Peer(id = "123") | ||
peer2 = Peer(id = peer1.id) | ||
<- peer2 | ||
func timeout() -> Worker: | ||
w <- AquaName.getWorker() | ||
a = w.host_id | ||
<- w |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
aqua DeclareModule declares decl_foo, decl_bar, SuperFoo, DECLARE_CONST, DECLARE_CONST2 | ||
export SuperFoo | ||
aqua AquaName declares getWorker, Worker | ||
|
||
const DECLARE_CONST = "declare_const" | ||
const DECLARE_CONST2 = "declare_const2" | ||
data Worker: | ||
host_id: string | ||
|
||
service SuperFoo("super_foo"): | ||
small_foo() -> string | ||
func getWorker() -> Worker: | ||
<- Worker(host_id = "") | ||
|
||
func decl_foo() -> string: | ||
res1 <- SuperFoo.small_foo() | ||
<- res1 | ||
|
||
func decl_bar() -> string: | ||
<- DECLARE_CONST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters