summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-24 16:52:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-24 16:52:05 +0800
commit46f7d5bc7af55a3d13a2f5edc70667f360b8bd4d (patch)
treeb7cae8bedcbc0aa39b2fde403a9078e4bdb6a18f /test/completion/common.lua
parenta52f20c4b41a34386f33bfa75bc05621e81bd8d4 (diff)
downloadlua-language-server-46f7d5bc7af55a3d13a2f5edc70667f360b8bd4d.zip
fix #660
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r--test/completion/common.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index b3a2a36a..2efa63ad 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -2637,3 +2637,19 @@ m.$
{
[1] = EXISTS,
}
+
+TEST [[
+---@class class1
+class1 = {}
+
+function class1:method1() end
+
+---@class class2 : class1
+class2 = {}
+
+class2:$
+
+]]
+{
+ [1] = EXISTS,
+}