summaryrefslogtreecommitdiff
path: root/server/test/definition/method.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-30 14:58:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-30 14:58:26 +0800
commitb12c90d26fe0e99fb77f22ebbedc4411794133d2 (patch)
tree5cd7acebb2bb8785cc3f61e123cb98036892c916 /server/test/definition/method.lua
parentbad3834c8f6f6b462e8ef968f28e2e49929fbe65 (diff)
downloadlua-language-server-b12c90d26fe0e99fb77f22ebbedc4411794133d2.zip
支持多返回值
Diffstat (limited to 'server/test/definition/method.lua')
-rw-r--r--server/test/definition/method.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/server/test/definition/method.lua b/server/test/definition/method.lua
new file mode 100644
index 00000000..96b77a60
--- /dev/null
+++ b/server/test/definition/method.lua
@@ -0,0 +1,23 @@
+TEST [[
+function mt:<!a!>()
+end
+function mt:b()
+ mt:<?a?>()
+end
+]]
+
+TEST [[
+function mt:<!m1!>()
+end
+function mt:m2()
+ self:<?m1?>()
+end
+]]
+
+TEST [[
+function mt:m3()
+ mt:<?m4?>()
+end
+function mt:<!m4!>()
+end
+]]