Closed
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
MacOS
What is the issue affecting?
Annotations, Type Checking
Expected Behaviour
---@overload fun(x: ffi.cdata*, type: "rvalue"): gccjit.RValue*
---@overload fun(x: ffi.cdata*, type: "lvalue"): gccjit.LValue*
---@overload fun(x: ffi.cdata*, type: "type"): gccjit.Type*
local function expect(x, type)
...
end
local rval = expect(data, "rvalue")
--typeof rval should be "gccjit.RValue*"
Actual Behaviour

Reproduction steps
- use this function:
---@overload fun(type: "int"): integer
---@overload fun(type: "str"): string
local function f(type)
...
end
- use it
local i = f"int"
local s = f"str"
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
No labels