aqua/integration-tests/lsp-aqua/types.aqua

30 lines
392 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

aqua Types
alias Top:
alias Bottom: ⊥
alias Number: u32
alias String: string
alias Array: []string
alias Stream: *string
alias Option: ?string
data Struct:
a: Number
b: String
c: Array
d: Option
service Srv("srv"):
noop(srvArg: string)
ability Ability:
a: Number
b: String
func nilArrow():
Srv.noop("")
func fullArrow(a: string, b: u32) -> string, u32:
<- a, b