...
This commit is contained in:
@@ -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æøå")
|
||||
}
|
||||
Reference in New Issue
Block a user