diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-18 20:12:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-18 20:12:33 +0800 |
commit | 9ba12022f003d3b4dade6a7cfdb4ef6594648299 (patch) | |
tree | e7f8e1e03321b389e097f0b72997f991949e2154 | |
parent | 16c69314cfba1d8bf9b4c44747038f0ef96a126f (diff) | |
download | lua-language-server-9ba12022f003d3b4dade6a7cfdb4ef6594648299.zip |
fix
-rw-r--r-- | script/core/reference.lua | 1 | ||||
-rw-r--r-- | test/references/common.lua | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/script/core/reference.lua b/script/core/reference.lua index fc8c01f1..109bf601 100644 --- a/script/core/reference.lua +++ b/script/core/reference.lua @@ -91,6 +91,7 @@ return function (uri, offset) end if ( src.type == 'doc.class.name' or src.type == 'doc.type.name' + or src.type == 'doc.extends.name' ) and source.type ~= 'doc.type.name' and source.type ~= 'doc.class.name' then diff --git a/test/references/common.lua b/test/references/common.lua index e5f61cb3..e2dbdf65 100644 --- a/test/references/common.lua +++ b/test/references/common.lua @@ -208,3 +208,11 @@ TEST [[ ---@return <?xxx?> function f() end ]] + +TEST [[ +---@class A +---@class B: A + +---@type A +local <?t?> +]] |