diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-17 23:05:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-17 23:05:10 +0800 |
commit | 5e91ce2128ed7b44044a701b4a8d17c6df831a56 (patch) | |
tree | c65a57fae391ca5ced6eea5b1d312dfac83896a9 /server-beta/test | |
parent | 54907f010415d179a435c37cd2f354315a424f08 (diff) | |
download | lua-language-server-5e91ce2128ed7b44044a701b4a8d17c6df831a56.zip |
更新细节
Diffstat (limited to 'server-beta/test')
-rw-r--r-- | server-beta/test/rename/init.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/server-beta/test/rename/init.lua b/server-beta/test/rename/init.lua index 92612f0f..acfc4ae1 100644 --- a/server-beta/test/rename/init.lua +++ b/server-beta/test/rename/init.lua @@ -140,7 +140,17 @@ function mt:a() end mt:a() ]] [[ -function mt:!!!() +mt["!!!"] = function (self) +end +mt:!!!() +]] + +TEST ('a', '!!!') [[ +function mt:a(x, y) +end +mt:a() +]] [[ +mt["!!!"] = function (self, x, y) end mt:!!!() ]] @@ -150,3 +160,9 @@ a = a ]] [[ _ENV["!!!"] = _ENV["!!!"] ]] + +TEST ('a', '!!!') [[ +function a() end +]] [[ +_ENV["!!!"] = function () end +]] |