foreach
This commit is contained in:
@@ -11,18 +11,11 @@ enum Message {
|
||||
}
|
||||
|
||||
func main(): i32 {
|
||||
let message = getMessage()
|
||||
let names = ["a", "b", "c", "d"]
|
||||
|
||||
match message {
|
||||
Quit {}
|
||||
Say msg {
|
||||
core::println(msg)
|
||||
}
|
||||
for name in names {
|
||||
core::println(name)
|
||||
}
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
func getMessage(): Message {
|
||||
return new Message::Say("testæøå")
|
||||
}
|
||||
Reference in New Issue
Block a user