Skip to content

Required modules' returns' types are wrong when more than a single value is returned #1868

Open
@artemking4

Description

@artemking4

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows WSL

What is the issue affecting?

Type Checking, Diagnostics/Syntax Checking, Libraries

Expected Behaviour

First type should be a number, second - a string, third - a boolean

Actual Behaviour

изображение

Reproduction steps

main.lua

local number, string, boolean = require "required"

required.lua

return 1337, "string", true

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions