Skip to content

Problem with the type of for loop variables #1218

@NeOzay

Description

@NeOzay

Describe the bug
the type of variables have not been correctly filled in

To Reproduce

local t ---@type table<string, number>
for key, value in pairs(t) do
   print(key, value) --key or value is unknown
end

Screenshots
Screenshot_2022-06-16-09-37-13-31_84d3000e3f4017145260f7618db1d683

Environment:
Reproduced in VSCode on Windows and Neovim on Termux(Android shell emulator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions