summaryrefslogtreecommitdiff
path: root/server/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-17 15:09:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-17 15:09:43 +0800
commit53cba927958f6db6c979b3b6bfc7d50c706b9213 (patch)
treee5fd461b63e3e39cda7864998d1c1904cfa1d757 /server/test/diagnostics
parent110b227257ce5d7f4af0bd19e78f2187e276ee95 (diff)
downloadlua-language-server-53cba927958f6db6c979b3b6bfc7d50c706b9213.zip
重定义变量过滤隐藏变量
Diffstat (limited to 'server/test/diagnostics')
-rw-r--r--server/test/diagnostics/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 9d9c7424..5fb34908 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -142,3 +142,11 @@ return [[
]]
]=]
+
+TEST [[
+local mt, x
+function mt:m()
+ function x:m()
+ end
+end
+]]