Skip to content

EmmyLua type dosen`t work in loop #1150

@YiYeYu

Description

@YiYeYu

Describe the bug

---@as type dosen`t work in loop

To Reproduce

    ---@type ExpandUIView
    local a;
    -- ---@type ExpandUIView
    -- local expandUI;
    for index, value in ipairs(nil) do
        ---@type ExpandUIView
        local expandUI;
    end

expandUI type is unkonw

Screenshots
image

Environment (please complete the following information):

  • OS: Windows
  • Client:VSCode
  • v3.2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions