WIP: dev #1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user