From 3e7c5d5725e2a342121b8758a5e364dcf9f6435d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 21 Dec 2018 10:46:09 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3hover=E7=9A=84=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/hover.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/matcher/hover.lua') 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 -- cgit v1.2.3