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
From Roku's documentation, the invalid value and its boxed version, CreateObject("roInvalid") are both treated as invalid; however, no other values are. See Optional Chaining docs.
brs> foo = CreateObject("roInvalid")
brs> ?foo
<Component: roInvalid>
brs> print foo?.bar
REPL(1,11-14): Member function not found in BrightScript Component or interface.
brs>
The expression print foo?.bar should print out invalid instead of the error, "Member function not found in BrightScript Component or interface.".
The text was updated successfully, but these errors were encountered:
From Roku's documentation, the
invalid
value and its boxed version,CreateObject("roInvalid")
are both treated as invalid; however, no other values are. See Optional Chaining docs.The expression
print foo?.bar
should print outinvalid
instead of the error, "Member function not found in BrightScript Component or interface.".The text was updated successfully, but these errors were encountered: