summaryrefslogtreecommitdiff
path: root/test-beta/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-18 16:48:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-18 16:48:10 +0800
commit8f2ce1024c5ea43e11137a398171c01642b2ea1a (patch)
treeefa2d98b2a354c6b34a2271676d23bb8c3411a6c /test-beta/definition
parent332ba28abb7dfe6f45242c978376b3b88c720284 (diff)
downloadlua-language-server-8f2ce1024c5ea43e11137a398171c01642b2ea1a.zip
更新测试
Diffstat (limited to 'test-beta/definition')
-rw-r--r--test-beta/definition/bug.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test-beta/definition/bug.lua b/test-beta/definition/bug.lua
index c9f3f70d..9bd4b12f 100644
--- a/test-beta/definition/bug.lua
+++ b/test-beta/definition/bug.lua
@@ -100,3 +100,17 @@ TEST [[
local a = os.clock()
local <?<!b!>?> = os.clock()
]]
+
+TEST [[
+local mt = {}
+
+function mt:<!add!>(a, b)
+end
+
+local function init()
+ return mt
+end
+
+local t = init()
+t:<?add?>()
+]]