diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-06 16:00:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-06 16:00:27 +0800 |
commit | 0e0421c29ea3c829ef98fc00e890e80666cece73 (patch) | |
tree | f2877cdd2cc28265032cf920b7a87cfd1076c74c /test/diagnostics/init.lua | |
parent | bd1196c1b2f6c0722deb765359e5a0702c31644c (diff) | |
download | lua-language-server-0e0421c29ea3c829ef98fc00e890e80666cece73.zip |
fix #490
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index e8cc76e4..39efd674 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -1097,3 +1097,18 @@ x = 1 TEST [[ ---@diagnostic disable-next-line: <!xxx!> ]] + +TEST [[ +local mt = {} + +function mt:a(x) + return self, x +end + +function mt:b(y) + self:a(1):b(2) + return y +end + +return mt +]] |