This commit is contained in:
nub31
2026-03-01 18:14:54 +01:00
parent 5f4a4172bf
commit 2b7eb56895
9 changed files with 192 additions and 138 deletions

View File

@@ -1,7 +1,29 @@
module main
struct Human {
name: string
age: i32
}
enum Message {
Quit
Say: string
}
func main(): i32 {
core::println("Hello, world!")
core::println("Hello" + "World")
let message: Message = new Message::Say "test"
match message {
Quit {
core::println("quit")
}
Say message {
core::println(message)
}
}
return 0
}