This commit is contained in:
nub31
2026-02-28 02:27:44 +01:00
parent 677c7dea9e
commit da2fa81c39
2 changed files with 196 additions and 26 deletions

View File

@@ -1,6 +1,25 @@
module main
extern func puts(text: ^u8)
export func print(text: string) {
puts(text.ptr)
}
enum Message {
Tell: string
}
func main(): i32 {
core::print("Your mom")
let x = "test"
let y = {
abc = x
}
let a: Message = enum Message::Tell x
core::print(x)
return 0
}