You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The emmylua annotation ---@vararg causes incorrect key-val type inference when using pairs() on a table
Reproduce
--- @diagnosticdisable:unused-local,empty-block--- @classMyType--- @typetable<number, MyType>localtb= {}
--- @varargstringfunctiontest(...)
forkey, valinpairs(tb) do-- key, val has wrong type (string)endendfunctiontest_no_varargs(...)
forkey, valinpairs(tb) do-- key, val has correct typeendend
Client
Windows VSCode
The text was updated successfully, but these errors were encountered:
The emmylua annotation
---@vararg
causes incorrect key-val type inference when using pairs() on a tableReproduce
Client
Windows VSCode
The text was updated successfully, but these errors were encountered: