summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/completion/common.lua16
-rw-r--r--test/definition/luadoc.lua2
2 files changed, 17 insertions, 1 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 3b06d572..a01b2d10 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -2723,3 +2723,19 @@ TEST [[
kind = define.CompletionItemKind.Class,
}
}
+
+TEST [[
+---@class A
+---@field zzzz number
+
+---@param x A
+local function f(x) end
+
+f({zzz<??>})
+]]
+{
+ [1] = {
+ label = 'zzzz',
+ kind = define.CompletionItemKind.Property,
+ }
+}
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index 58c7c8fe..8124261c 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -362,7 +362,7 @@ TEST [[
---@generic T
---@param x T
---@return fun():T
-local function f(x) end
+local function f(<!x!>) end
local v1 = f(<!{}!>)
local <?<!v2!>?> = v1()