---@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.
Issue Description
The point is to achieve the same behavior for
Type3
as forType2
.