diff options
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 021746be..760a9ab9 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1849,3 +1849,20 @@ local x: { [1]: integer = 10, } ]] + +TEST [[ +---@class A +---@field x string + +---@class B: A +---@field y string + +---@type B +local <?t?> +]] +[[ +local t: B { + x: string, + y: string, +} +]] |