Skip to content

3.6.5 --[[]] #1825

@RomanSpector

Description

@RomanSpector

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Other

Expected Behaviour

Should not highlight the error

Actual Behaviour

image

Reproduction steps

---@param a string
local function test(a)
    print(a);
end

local a = 1;
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);
test(a --[[@as string]]);

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions