summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-14 21:13:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-14 21:13:54 +0800
commit7df9f807faf27e3faea33842ed599963e00cdb0b (patch)
tree7fab4bda4680a994c5a46b4f695c5cd957411042 /test
parent9c084cd0bf6b83bb235a60dd2353b775c379ac6e (diff)
downloadlua-language-server-7df9f807faf27e3faea33842ed599963e00cdb0b.zip
cleanup
Diffstat (limited to 'test')
-rw-r--r--test/completion/common.lua2
-rw-r--r--test/type_inference/init.lua7
2 files changed, 8 insertions, 1 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 5ee2b844..4667305f 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -630,7 +630,7 @@ self.results.list[#self.re<??>]
},
{
label = 'results',
- kind = define.CompletionItemKind.Text,
+ kind = define.CompletionItemKind.Field,
},
}
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index c2bd96b7..4787dd56 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1459,3 +1459,10 @@ local uri
local <?v?> = t[uri]
]]
+
+TEST 'A' [[
+---@class A
+G = {}
+
+<?G?>:A()
+]]