diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-16 17:50:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-16 17:50:16 +0800 |
commit | 03a9b0c84b2ea3bd306071860a696f75ac4993d4 (patch) | |
tree | 8fd56e5429e9aca88c29fe99403a117f0f67540b /test | |
parent | 792afd666c6c43bdbd7e82ec8596755f579dc9ba (diff) | |
download | lua-language-server-03a9b0c84b2ea3bd306071860a696f75ac4993d4.zip |
call `doc.type.function` always use literal index
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/init.lua | 18 |
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) |