summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-18 17:00:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-04-18 17:00:11 +0800
commitd11925853f6dd02ae5684a587257fd9b29202771 (patch)
tree36262a2aea813d2b7a43f35220c52e83cd9d81c7 /test/type_inference
parentb20367454f31cc178020ee8a0e34fe0a18ddbb01 (diff)
downloadlua-language-server-d11925853f6dd02ae5684a587257fd9b29202771.zip
补充测试和更新说明
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 98a07ca3..093cfb1e 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4335,4 +4335,11 @@ end
local <?x?> = f()
]=]
---
+
+TEST 'boolean|number' [[
+---@alias A number
+---@alias(merge) A boolean
+
+---@type A
+local <?x?>
+]]