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
It seems that the precedence of the = operator is not being considered correctly. It's also curious that the entire ternary expression has been wrapped in parenthesis - they don't seem to have any effect.
The 'correct' output would be for the parenthesis to wrap only the condition part of the ternary:
result=(false && val=1) ? "A" : "B"
The text was updated successfully, but these errors were encountered:
Input:
(prints "B" when run)
stree format
output:This prints
false
when run.It seems that the precedence of the
=
operator is not being considered correctly. It's also curious that the entire ternary expression has been wrapped in parenthesis - they don't seem to have any effect.The 'correct' output would be for the parenthesis to wrap only the condition part of the ternary:
The text was updated successfully, but these errors were encountered: