-
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
213 additions
and
104 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,10 +1,29 @@ | ||
aqua Main | ||
aqua Job declares * | ||
|
||
export main | ||
export aaa, bbb | ||
|
||
func reward(amount: ?u32) -> u32: | ||
result = ?[amount! / 10, 0] | ||
<- result! | ||
data Peer: | ||
id: string | ||
|
||
func main(a: u32) -> u32: | ||
<- reward(?[a]) | ||
func aaa() -> Peer: | ||
peer1 = Peer(id = "123") | ||
peer2 = Peer(id = peer1.id) | ||
<- peer2 | ||
|
||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package aqua.raw | ||
|
||
import aqua.types.{BottomType, Type} | ||
|
||
// Part for structures that have errors inside but must be registered in context | ||
case class ErroredPart(name: String) extends RawPart { | ||
override def rawPartType: Type = BottomType | ||
|
||
override def rename(s: String): RawPart = copy(name = s) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,6 @@ class RawSemantics[S[_]]( | |
) | ||
) | ||
} | ||
// TODO: return as Eval | ||
.value | ||
} | ||
} | ||
|
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
Oops, something went wrong.