diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-18 16:32:36 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-18 16:32:36 +0800 |
commit | f077aa010aa2ae0a2cc6edbc345eaf4056b96e2b (patch) | |
tree | c45f7cf10a5fed43afc0a93eb9106961c67b931c /server/test/diagnostics/init.lua | |
parent | cc8fc15d26a1dfd2f30485ba21f2f313141932d0 (diff) | |
download | lua-language-server-f077aa010aa2ae0a2cc6edbc345eaf4056b96e2b.zip |
class的一些诊断
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r-- | server/test/diagnostics/init.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 557a2475..7bb25f00 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -332,3 +332,26 @@ local function x() print(loc) end ]] + +TEST [[ +---@class <!Class!> +---@class <!Class!> +]] + +TEST [[ +---@class A : <!B!> +]] + +TEST [[ +---@class <!A : B!> +---@class <!B : C!> +---@class <!C : D!> +---@class <!D : A!> +]] + +TEST [[ +---@class A : B +---@class B : C +---@class C : D +---@class D +]] |