summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-04-26 14:11:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-04-26 14:11:14 +0800
commit76c7098956305de4ca0be6f260c10ab8f8c6fa04 (patch)
tree99fea5fdb048f407f5bbfa77a0a4b4c591fbdb11 /test/type_inference
parent881e16b99cc1dd35d0e50af4b14d43635d0a474d (diff)
downloadlua-language-server-76c7098956305de4ca0be6f260c10ab8f8c6fa04.zip
lock parsing resume
fix #2056
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 51de9cd5..12a8e2ab 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4268,3 +4268,13 @@ local b = '2';
local <?c?> = a .. b;
]]
+
+TEST 'number|{ [1]: string }' [[
+---@alias Some
+---| { [1]: string }
+---| number
+
+local x ---@type Some
+
+print(<?x?>)
+]]