This commit is contained in:
nub31
2026-03-09 17:35:34 +01:00
parent 4210ad878b
commit 1a1dc1389d
3 changed files with 161 additions and 185 deletions

View File

@@ -10,15 +10,19 @@ enum Message {
Say: string
}
func main(args: []string): i32 {
let i = 0
while i < args.count {
// core::print(args[i])
i = i + 1
func main(): i32 {
let message = getMessage()
match message {
Quit {}
Say msg {
core::println(msg)
}
}
return 0
}
func getMessage(): Message {
return new Message::Say("test")
return new Message::Say("testæøå")
}