diff options
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, +} +]] |