Closed
Description
Describe the bug
When creating a field and a function of the same name (they have different return types), the code completion popup only shows the Function and not the Field.
Sample Code:
`---@Class car @parent class
---@field public body body Retreive the nested body object
local car = {}
---get the body object
---@return string body
function car.body() end
---@Class body : car
local body = {}
--- Number of doors
---@return number
function body.doors() end
--- Style of car
---@return string
function body.style() end`
Expected behavior
I would expect when typing car.b - that the typeahead would show two options distinguished by the symbol for a function and field.
Environment (please complete the following information):
- OS: Windows
- No
- Client: VSCode