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
The code below exemplifies the issue, when invalid is used on the left side of the test it is not boxed in roInvalid so is not correctly compared with the parameter (that was boxed because of the object type on the argument).
submain()
myVar=invalidRightInvalid(myVar)
LeftInvalid(myVar)
end subsubRightInvalid(param1asobject)
ifparam1<>invalidparam1.id=1elseprint"param invalid"endifend subsubLeftInvalid(param1asobject)
ifinvalid<>param1param1.id=1elseprint"param invalid"endifend sub
The code was supposed to print param invalid in two consecutive lines, instead it shows the error below, because the comparison cannot say invalid is not different than roInvalid:
param invalid
left-invalid-error.brs(17,12-14): Attempting to set property on non-iterable value
left: Object
The text was updated successfully, but these errors were encountered:
The code below exemplifies the issue, when
invalid
is used on the left side of the test it is not boxed inroInvalid
so is not correctly compared with the parameter (that was boxed because of theobject
type on the argument).The code was supposed to print
param invalid
in two consecutive lines, instead it shows the error below, because the comparison cannot sayinvalid
is not different thanroInvalid
:param invalid left-invalid-error.brs(17,12-14): Attempting to set property on non-iterable value left: Object
The text was updated successfully, but these errors were encountered: