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
Switching over an inline array doesn't work without parantheses. It would be nice to have a suggestion for the case one forgets adding them.
package suggestion
main :: proc() {
b0, b1: bool// doesn't work without paranthesesswitch [2]bool{b0, b1} {
case {false, false}:
case {false, true}:
case {true, false}:
case {true, true}:
}
// works thanks to paranthesesswitch ([2]bool{b0, b1}) {
case {false, false}:
case {false, true}:
case {true, false}:
case {true, true}:
}
}
// Odin version: dev-2024-10:55ff1769d
The text was updated successfully, but these errors were encountered:
Switching over an inline array doesn't work without parantheses. It would be nice to have a suggestion for the case one forgets adding them.
The text was updated successfully, but these errors were encountered: