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
Pretty amazing. We have always worked and MRI has always raised this error. @tobiassvn if you would like to go the extra mile you could open an issue at ruby-lang and ask if this should be made to work. I guess my only guess would be that this must always evaluate to true so it makes no sense to have it in a conditional? but they do not restrict other things so it may be worth raising?
It should not be very hard to detect an masgn in the ifexpr part of the AST if we do need to fix this.
@tobiassvn yeah that is what I meant when I said it always evaluated true (re Matz comment). In any case, we will do whatever they determine in 10617. For older version compatibility we will just add the error check