diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-11 16:44:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-11 16:44:28 +0800 |
commit | bce8b096a5ccfffd928ba6e56980b62201c3d479 (patch) | |
tree | 0e1f5d3f03d02f54f357bd1a64e4848156ff71ca /test/hover | |
parent | 34500a78247b7192b8e2a1578a642daf3e48b358 (diff) | |
download | lua-language-server-bce8b096a5ccfffd928ba6e56980b62201c3d479.zip |
add test
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 760a9ab9..d4160dfa 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1866,3 +1866,21 @@ local t: B { y: string, } ]] + +TEST [[ +---@class A +---@field x string + +---@class B: A +---@field x integer +---@field y string + +---@type B +local <?t?> +]] +[[ +local t: B { + x: integer, + y: string, +} +]] |