diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 11:28:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 11:28:15 +0800 |
commit | 3ccf8b1b0e1048ee9056c610829d49679df6ac3b (patch) | |
tree | 773c10db34ca02a404fb67cd8a390e024f4cec56 /server/test/definition/method.lua | |
parent | 3eaa1ac1e6731f595f892e6b96dbfe4c5c42fc75 (diff) | |
download | lua-language-server-3ccf8b1b0e1048ee9056c610829d49679df6ac3b.zip |
支持重新赋值
Diffstat (limited to 'server/test/definition/method.lua')
-rw-r--r-- | server/test/definition/method.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/definition/method.lua b/server/test/definition/method.lua index ac9e95e7..05820e97 100644 --- a/server/test/definition/method.lua +++ b/server/test/definition/method.lua @@ -100,3 +100,14 @@ local obj = setmetatable({ } }, { __index = mt }) ]] + +TEST [[ +local sm = setmetatable +local mt +mt.__index = mt +function mt:<!method1!>() +end + +local obj = sm({}, mt) +obj:<?method1?>() +]] |