summaryrefslogtreecommitdiff
path: root/test/definition/special.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-05 15:40:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-05 15:40:25 +0800
commit5641c17faaed10409a476558dde8e15f4f91f9cb (patch)
tree41e4981290a942b2ac6a273a47730f2386246040 /test/definition/special.lua
parentd704ebf543af4e9ae2aa115f24193d4d5012ac73 (diff)
downloadlua-language-server-5641c17faaed10409a476558dde8e15f4f91f9cb.zip
guess `self`
Diffstat (limited to 'test/definition/special.lua')
-rw-r--r--test/definition/special.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/definition/special.lua b/test/definition/special.lua
index 4e3728e3..3f0d076a 100644
--- a/test/definition/special.lua
+++ b/test/definition/special.lua
@@ -124,3 +124,13 @@ end
obj:<?x?>()
]]
+
+TEST [[
+local mt = {}
+
+mt.<!xx!> = 1
+
+mt.yy = function (self)
+ print(self.<?xx?>)
+end
+]]