boolean operators (||
, &&
) allowed in return values (for non-boolean return values)
#1083
Milestone
||
, &&
) allowed in return values (for non-boolean return values)
#1083
example:
this program executes with
gno run
with the following output:It seems to me that only the first expression is evaluated & returned.
I first discovered this as I made a typo in this function. I intended to do a bitwise OR, then I noticed some weird behaviour elsewhere and noticed that the return expression contained this
||
while it was not allowed.(Part of a series of issues encountered while developing gnochess)
The text was updated successfully, but these errors were encountered: