You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package bug
main :: proc() {
bools := make([]bool, 24)
#unrollfor i in0..<6 {
bools[i] = true
}
#unrollfor _, i in bools[:6] {
bools[i] = true
}
#unrollfor &done in bools[:6] { // Error here
done = true
}
for i in0..<6 {
bools[i] = true
}
for _, i in bools[:6] {
bools[i] = true
}
for &done in bools[:6] {
done = true
}
}
Odin check output:
/bug.odin(14:14) Syntax Error: Expected 'identifier', got '&'
#unroll for &done in bools[:6] {
^
/bug.odin(14:15) Syntax Error: Expected 'in', got 'identifier'
#unroll for &done in bools[:6] {
^
/bug.odin(14:20) Syntax Error: Expected an operand
#unroll for &done in bools[:6] {
^
/bug.odin(15:14) Syntax Error: Expected '{', got 'newline'
}
for i in 0..<6 {
bools[i] = true
}
for _, i in bools[:6 ...
^
Example:
Odin check output:
Report:
The text was updated successfully, but these errors were encountered: