summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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)