summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-12 15:09:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-12 15:09:53 +0800
commit93bf979617ff781f8a2d28d0574a3d4b9e2c5253 (patch)
treebc48487486ca438134e489377ab6aa329c288833 /test-beta
parentb9d4d1d00e72cb0204eeec8feaac4fff13e6b353 (diff)
downloadlua-language-server-93bf979617ff781f8a2d28d0574a3d4b9e2c5253.zip
修正doc推测的bug
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 55ce9845..912807ac 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1324,3 +1324,16 @@ local <?t?>
[[
local t: string|'enum1'|'enum2'
]]
+
+TEST [[
+---@class c
+t = {}
+
+---@overload fun()
+function <?t?>.f() end
+]]
+[[
+global t: c {
+ f: function,
+}
+]]