Skip to content

: are not typed checked properly #2842

Open
@Rathoz

Description

@Rathoz

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?

Type Checking

Reproduction steps

---@param a number|string
function Foo.Bar(a)
	return a:lower() -- Should warn as the code will error on a number input
end

Additional Notes

#2708 (comment)

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions