summaryrefslogtreecommitdiff
path: root/server/src/matcher/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/hover.lua')
-rw-r--r--server/src/matcher/hover.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index 310d7e84..a2ced9fe 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -252,6 +252,9 @@ local function buildValueReturns(result)
for i, rtn in ipairs(func.returns) do
strs[i] = rtn.type
end
+ if #strs == 0 then
+ strs[1] = 'any'
+ end
return '\n -> ' .. table.concat(strs, ', ')
end