Skip to content

Type checking regression #1680

@AFCMS

Description

@AFCMS

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Linux

What is the issue affecting?

Type Checking

Expected Behaviour

It seems to be a regression, as it worked just fine a few weeks ago.

The parameters I used should be accepted.

Actual Behaviour

image
image

Reproduction steps

Try something like this:

---@class some_thing
---@field test string|string[]

---@param s some_thing
function test(s)
end

test({test = {"dd"}})

Additional Notes

None

Log File

file.log

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