diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-20 16:55:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-20 16:55:09 +0800 |
commit | 4dda81f0852b8d7372de54c8a42a5c64b28075ac (patch) | |
tree | fec0f6e73edac8c2916d40deb0482c4d9e1045fd /test-beta/definition/bug.lua | |
parent | ffbaf6c2afae048f3171fb37f352171e0ce98dd5 (diff) | |
download | lua-language-server-4dda81f0852b8d7372de54c8a42a5c64b28075ac.zip |
整理代码
Diffstat (limited to 'test-beta/definition/bug.lua')
-rw-r--r-- | test-beta/definition/bug.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-beta/definition/bug.lua b/test-beta/definition/bug.lua index 9bd4b12f..0550b3b9 100644 --- a/test-beta/definition/bug.lua +++ b/test-beta/definition/bug.lua @@ -114,3 +114,18 @@ end local t = init() t:<?add?>() ]] + +TEST [[ +local mt = {} +mt.__index = mt + +function mt:<!add!>(a, b) +end + +local function init() + return setmetatable({}, mt) +end + +local t = init() +t:<?add?>() +]] |