diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-12 15:09:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-12 15:09:53 +0800 |
commit | 93bf979617ff781f8a2d28d0574a3d4b9e2c5253 (patch) | |
tree | bc48487486ca438134e489377ab6aa329c288833 /test-beta | |
parent | b9d4d1d00e72cb0204eeec8feaac4fff13e6b353 (diff) | |
download | lua-language-server-93bf979617ff781f8a2d28d0574a3d4b9e2c5253.zip |
修正doc推测的bug
Diffstat (limited to 'test-beta')
-rw-r--r-- | test-beta/hover/init.lua | 13 |
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, +} +]] |