operator |= not defined #21966
Replies: 1 comment 1 reply
-
As documented here: https://docs.vlang.io/appendix-ii-operators.html
module main
fn main() {
mut foo := false
bar := true
foo ||= bar
println(foo)
} works as expected. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Didnt want to open an issue, since nto sure if its and issue, but should this be defined?
Something like this should work, right?:
but it errors with:
Beta Was this translation helpful? Give feedback.
All reactions