diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-24 16:10:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-24 16:10:35 +0800 |
commit | 574136216e1cbfe5836bc3136fdc66c250e7be07 (patch) | |
tree | 7b404ded5fc6b07efff73180490ce0f3d07c8c0f /test | |
parent | 3534367f05b37b0122441bf3b3ddaaaf707c9514 (diff) | |
download | lua-language-server-574136216e1cbfe5836bc3136fdc66c250e7be07.zip |
fix #1229
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/common.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index a837fc0f..e6bc86ef 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1675,3 +1675,23 @@ TEST [[ ---@field [A] A ---@field [<!A!>] true ]] + +TEST [[ +---@diagnostic disable: unused-local + +---@type 'x' +local t + +local n = t:upper() +]] + +TEST [[ +---@diagnostic disable: unused-local + +---@alias A 'x' + +---@type A +local t + +local n = t:upper() +]] |