summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-22 21:15:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-22 21:15:06 +0800
commit5c48724257e1abdd81eed0d0e72b6a1033571b87 (patch)
tree4aecdffe765f82f41082c8c53bfebc2e61d63dbf /test
parent52097b6ee7cc8f5a770eb851902560b5b8592218 (diff)
downloadlua-language-server-5c48724257e1abdd81eed0d0e72b6a1033571b87.zip
#406 hover dont show `any` before `{}`
Diffstat (limited to 'test')
-rw-r--r--test/hover/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 27cc62ee..dc9125ed 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1515,3 +1515,14 @@ local <?x?>--测试
[[
local x: any
]]
+
+TEST [[
+---@type any
+local <?t?>
+t.a = 1
+]]
+[[
+local t: {
+ a: integer = 1,
+}
+]]