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
code.v:8:12: error: if guard condition expression is illegal, it should return an option
6 | other := foo.name
7 |
8 | if name := other {
| ~~~~~
9 | println("with name")
10 | } else {
Describe the bug
See code: https://play.vlang.io/p/8946312342
Expected Behavior
No error
Current Behavior
Error:
Reproduction Steps
Run code above
Possible Solution
No response
Additional Information/Context
No response
V version
0.3.3
Environment details (OS name and version, etc.)
Playground