WIP: dev #1

Draft
nub31 wants to merge 103 commits from dev into master
Showing only changes of commit 6507624e90 - Show all commits

View File

@@ -11,10 +11,13 @@ enum Message {
} }
func main(): i32 { func main(): i32 {
let names = ["a", "b", "c", "d"] let messages: []Message = [new Message::Say("first"), new Message::Say("second")]
for name in names { for message in messages {
core::println(name) match message {
Say msg core::println(msg)
Quit {}
}
} }
return 0 return 0