lua-language-server
lua-language-server copied to clipboard
Feature Request: Error When Using Non-Existant Enum Value
It would be nice when trying to use a non-extistant enum value in a function there was a warning. Ex:
---@enum TestEnum
TestEnum = {
ONE = "ONE",
TWO = "TWO",
}
local test = TestEnum.ONE
if (test == TestEnum.ONE) then
print("ONE")
end
if (test == TestEnum.TOO) then
print("TOO")
end
It would be nice if when trying to do TestEnum.TOO there was an error that TOO wasn't a value on TestEnum
yesss exactly that would be amazing