CppCXY / EmmyLuaAnalyzer

a new EmmyLua Language Server
MIT License
39 stars 6 forks source link

数组类型字段,读取其中元素时类型推断不正确 #5

Closed chenfeng11111 closed 2 months ago

chenfeng11111 commented 2 months ago

---@type Talent[] self._talents = {}

for i = 1, self._talents do local talent = self._talents[i] end

此时循环中的local talent类型无法推断出是Talent类型,而是unknown