diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-09-07 19:48:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-09-07 19:48:05 +0800 |
commit | bae4d2e8e68127b017dc09f3019ab9ba886430dc (patch) | |
tree | a158782a70311b483ad4df866037ef155f7e105c /test | |
parent | 3daee7053529c03834063ad4f5c7e0da971d5dbf (diff) | |
download | lua-language-server-bae4d2e8e68127b017dc09f3019ab9ba886430dc.zip |
fix #1506
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 03b3a8ae..6f74e1af 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3783,3 +3783,11 @@ local x local <?v?> = t[x] ]] + +TEST 'A|B' [[ +---@class A +---@class B: A + +---@type A|B +local <?t?> +]] |