summaryrefslogtreecommitdiff
path: root/test/hover
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2021-10-01 14:32:01 +0800
committersumneko <sumneko@hotmail.com>2021-10-01 14:32:01 +0800
commit2183bf6e33a26216ecac691266462013a6359f68 (patch)
tree4487d3b044cf5d502d56c15d018b93b86b866ed8 /test/hover
parent26595d420cb58772ddbe068de204e6df942c2405 (diff)
downloadlua-language-server-2183bf6e33a26216ecac691266462013a6359f68.zip
#693 no longer infer `nil`
Diffstat (limited to 'test/hover')
-rw-r--r--test/hover/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index a09f8583..893d8698 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -697,8 +697,8 @@ end
]]
[[
function f()
- -> nil
- 2. nil
+ -> any
+ 2. any
]]
TEST [[
@@ -708,7 +708,7 @@ end
local <?x?> = f()
]]
[[
-local x: nil
+local x: any
]]
TEST [[
@@ -719,7 +719,7 @@ end
]]
[[
function f()
- -> integer|nil
+ -> integer
]]
TEST [[