summaryrefslogtreecommitdiff
path: root/test/definition/method.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-17 03:28:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-17 03:28:39 +0800
commit3996e193acf42c0f42a3ed2ee65e5e674c9ddeb0 (patch)
tree9066b5036a0009565de426936d22694408da514d /test/definition/method.lua
parent8c5dacd639a13aa8b7d5b6c8125144a60002d7a0 (diff)
downloadlua-language-server-3996e193acf42c0f42a3ed2ee65e5e674c9ddeb0.zip
#980
Diffstat (limited to 'test/definition/method.lua')
-rw-r--r--test/definition/method.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/definition/method.lua b/test/definition/method.lua
index aa7aacdc..e4368edb 100644
--- a/test/definition/method.lua
+++ b/test/definition/method.lua
@@ -29,3 +29,29 @@ end
function mt:<!m4!>()
end
]]
+
+TEST [[
+local mt
+
+function mt:f()
+ self.<!x!> = 1
+end
+
+mt.<?x?>
+]]
+
+TEST [[
+function G:f()
+ self.<!x!> = 1
+end
+
+G.<?x?>
+]]
+
+TEST [[
+function G.H:f()
+ self.<!x!> = 1
+end
+
+G.H.<?x?>
+]]