lua-language-server
                                
                                 lua-language-server copied to clipboard
                                
                                    lua-language-server copied to clipboard
                            
                            
                            
                        [Feature Request] Allow mark any as @enum
Issue Description
---@enum Type
local Type = {
	A = 1,
	B = 2,
	-- ...
}
---@return {[string]: integer}
function Generate_enum()
	return {}
end
---@enum (partial) Type
local Type2 = {}
for k, v in pairs(Generate_enum()) do
	Type2[k] = v
end
---@enum (partial) Type
local Type3 = Generate_enum()
The point is to achieve the same behavior for Type3 as for Type2.