no :: in func decls
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# Milestone 5: boolean while loops with optional post-iteration updates.
|
||||
|
||||
return_before_update :: func() i32 {
|
||||
return_before_update func() i32 {
|
||||
i i32 = 0
|
||||
while true : i = i + 1 {
|
||||
return i
|
||||
}
|
||||
}
|
||||
|
||||
main :: func() i32 {
|
||||
main func() i32 {
|
||||
total i32 = 0
|
||||
|
||||
# ordinary condition and update
|
||||
|
||||
Reference in New Issue
Block a user