summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/hover/init.lua8
-rw-r--r--test/type_inference/init.lua5
2 files changed, 13 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index dc725f6c..46accbf7 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1921,3 +1921,11 @@ end
[[
(upvalue) x: unknown
]]
+
+TEST [[
+---@type `123 ????` | ` x | y `
+local <?x?>
+]]
+[[
+local x: ` x | y `|`123 ????`
+]]
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 56f57100..566e847a 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2370,3 +2370,8 @@ TEST 'boolean|table' [[
---@type tp
local <?x?>
]]
+
+TEST '`1`|`true`' [[
+---@type `1` | `true`
+local <?x?>
+]]