diff options
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 1fc37bb5..613f9b0c 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -3324,3 +3324,27 @@ x.y.<??> kind = define.CompletionItemKind.Field, } } + +TEST [[ +local xyz + +---@cast <??> +]] +{ + { + label = 'xyz', + kind = define.CompletionItemKind.Variable, + }, +} + +TEST [[ +local xyz + +---@cast x<??> +]] +{ + { + label = 'xyz', + kind = define.CompletionItemKind.Variable, + } +} |