lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

---@return self

Open RomanSpector opened this issue 2 years ago • 3 comments

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

Expected Behaviour

image

Actual Behaviour

image

Reproduction steps

---@class Test1
local Test1 = {};

---@return self
function Test1:New()
    return setmetatable({}, { __indeex = self });
end

---@class Test2 : Test1
local Test2 = {};


local test1 = Test1:New();
local test2 = Test2:New();

Additional Notes

No response

Log File

No response

RomanSpector avatar Mar 12 '23 10:03 RomanSpector