lua-language-server
lua-language-server copied to clipboard
Advanced missing nil check
This is probably really hard to "fix".
---@type table|nil
local blueprint = { x = 1 }
local hasBlueprint = true
if blueprint == nil then
hasBlueprint = false
end
if hasBlueprint then
error("no blueprint found")
end
local s = blueprint.x

I don't know how to implement this feature