Skip to content

more than one return of require #2019

@tweyseo

Description

@tweyseo

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?

Diagnostics/Syntax Checking

Expected Behaviour

no warnning

Actual Behaviour

need check nil

Reproduction steps

local a = require("a")
local b1, b2 = require("b")

a:get()
b2:get(b1) -- warnning: need check nil

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    as designedFunctioning as intended, will not be modified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions