The Lua linter in studio is currently false-flagging typeof conditionals that check for “EnumItem” types.
Example Of Bug:
Proof of Validity Of Test Code:
The Lua linter in studio is currently false-flagging typeof conditionals that check for “EnumItem” types.
Example Of Bug:
Proof of Validity Of Test Code:
Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.
This will be resolved in release 485 (next week’s release).
As an unintrusive workaround until then you can write:
print(typeof(v) == ('EnumItem')) --> works
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.