summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
Diffstat (limited to 'test/type_inference')
-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?>
+]]