Linter False-Flagging "EnumItem" in "typeof()" Conditionals

The Lua linter in studio is currently false-flagging typeof conditionals that check for “EnumItem” types.

Example Of Bug:
image

Proof of Validity Of Test Code:
image

3 Likes

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.

4 Likes

This will be resolved in release 485 (next week’s release).

1 Like

As an unintrusive workaround until then you can write:

print(typeof(v) == ('EnumItem')) --> works
6 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.