summaryrefslogtreecommitdiff
path: root/test-beta/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-02 11:05:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-02 11:05:08 +0800
commitd34679f9d8a92ccb0f4ad98b420a9e6a0340711a (patch)
tree05917deeb8cc7fbbaa5586a7f10cbfadb0ff5250 /test-beta/hover/init.lua
parent2ca7cad6ead1b12cd899dd7ecac6b8442f499046 (diff)
downloadlua-language-server-d34679f9d8a92ccb0f4ad98b420a9e6a0340711a.zip
alias 的 hover 递归
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r--test-beta/hover/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 420e4c1d..2d550fea 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1283,3 +1283,13 @@ TEST [[
[[
展开为 string|'enum1'|'enum2'
]]
+
+TEST [[
+---@alias A string | "'enum1'" | "'enum2'"
+
+---@type A
+local <?t?>
+]]
+[[
+local t: string|'enum1'|'enum2'
+]]