summaryrefslogtreecommitdiff
path: root/test/definition/arg.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-19 17:42:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-19 17:42:28 +0800
commitc25e44113af96356dddf8098c375e2537ebb1b4d (patch)
treea0b643f5d2e7a483feeb7670481c45cae448f3bd /test/definition/arg.lua
parent229dfbac9f2b97c8aca3c565504d3aa0e99d5ab5 (diff)
downloadlua-language-server-c25e44113af96356dddf8098c375e2537ebb1b4d.zip
支持 self
Diffstat (limited to 'test/definition/arg.lua')
-rw-r--r--test/definition/arg.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/definition/arg.lua b/test/definition/arg.lua
index e1ce0891..623b70b7 100644
--- a/test/definition/arg.lua
+++ b/test/definition/arg.lua
@@ -9,3 +9,15 @@ local function x (x, <!...!>)
x = <?...?>
end
]]
+
+TEST [[
+function mt<!:!>x()
+ <?self?> = 1
+end
+]]
+
+TEST [[
+function mt:x(<!self!>)
+ <?self?> = 1
+end
+]]