DivertTarget errors
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 540
- PR merge metrics
- No merged PRs in 30d
Description
A few places in my code, I use diverts as variables, like ``~ save = -> start_trench``. It would be helpful if they would convert to a bool (true, as they have a value) when needed rather than giving errors such as ``Cannot perform operation '!' on DivertTarget`` and ``Shouldn't use a divert target (to start_trench) as a conditional value. Did you intend a function call 'likeThis()' or a read count check 'likeThis'? (no arrows)``. This would make them consistent with basic types, like strings or numbers. Admittedly I can see how this might sometimes be a user error, but if that's a problem some way of marking it as intentional would be more helpful.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.