diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-21 16:40:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-21 16:40:07 +0800 |
commit | 8af599790936f81cddaecb31d36eede70ad3739c (patch) | |
tree | 184f86524a29848869801ae01f2f21e3b4da1878 /test/diagnostics | |
parent | 8f4f9a7122168ba3944ec4fa791b94c8eff8750f (diff) | |
download | lua-language-server-8af599790936f81cddaecb31d36eede70ad3739c.zip |
fix
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/type-check.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index cbf9265c..20c611ab 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -300,5 +300,15 @@ local y t = y ]] +TEST [[ +---@class A +local m + +---@type number +m.x = 1 + +<!m.x!> = {} +]] + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') |