diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-31 16:32:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-31 16:32:35 +0800 |
commit | 6681c1153c7dc22d32c1c3e9e3018290742254af (patch) | |
tree | 7121827fa1efbf9e3ca194f2cccade98d0a2496e /test/references | |
parent | 996d46fcf80cedbc64b4f76fa772a1dcc1f567e6 (diff) | |
download | lua-language-server-6681c1153c7dc22d32c1c3e9e3018290742254af.zip |
fix #1855
Diffstat (limited to 'test/references')
-rw-r--r-- | test/references/common.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/references/common.lua b/test/references/common.lua index 484418ae..9cf128a7 100644 --- a/test/references/common.lua +++ b/test/references/common.lua @@ -231,3 +231,18 @@ local t2 t2.<!x!> = 1 ]] + +TEST [[ +---@alias lang 'en' | 'de' + +---@class A +local a + +---@type lang +a.test = 'en' + +---@class B +local b + +b.<?<!test!>?> = a.test +]] |