summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-07 19:48:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-07 19:48:05 +0800
commitbae4d2e8e68127b017dc09f3019ab9ba886430dc (patch)
treea158782a70311b483ad4df866037ef155f7e105c /test
parent3daee7053529c03834063ad4f5c7e0da971d5dbf (diff)
downloadlua-language-server-bae4d2e8e68127b017dc09f3019ab9ba886430dc.zip
fix #1506
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua8
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?>
+]]