summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-16 17:50:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-16 17:50:16 +0800
commit03a9b0c84b2ea3bd306071860a696f75ac4993d4 (patch)
tree8fd56e5429e9aca88c29fe99403a117f0f67540b /test
parent792afd666c6c43bdbd7e82ec8596755f579dc9ba (diff)
downloadlua-language-server-03a9b0c84b2ea3bd306071860a696f75ac4993d4.zip
call `doc.type.function` always use literal index
Diffstat (limited to 'test')
-rw-r--r--test/completion/init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 3dd9b639..9540eb2a 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -2737,3 +2737,21 @@ c:$
kind = define.CompletionItemKind.Field,
}
}
+
+TEST [[
+---@class Class
+---@field on fun(x: "'aaa'"|"'bbb'")
+local c
+
+c:on($)
+]]
+(EXISTS)
+
+TEST [[
+---@class Class
+---@field on fun(x: "'aaa'"|"'bbb'")
+local c
+
+c:on('$')
+]]
+(EXISTS)