diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-05 15:40:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-05 15:40:25 +0800 |
commit | 5641c17faaed10409a476558dde8e15f4f91f9cb (patch) | |
tree | 41e4981290a942b2ac6a273a47730f2386246040 /test/definition/special.lua | |
parent | d704ebf543af4e9ae2aa115f24193d4d5012ac73 (diff) | |
download | lua-language-server-5641c17faaed10409a476558dde8e15f4f91f9cb.zip |
guess `self`
Diffstat (limited to 'test/definition/special.lua')
-rw-r--r-- | test/definition/special.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/definition/special.lua b/test/definition/special.lua index 4e3728e3..3f0d076a 100644 --- a/test/definition/special.lua +++ b/test/definition/special.lua @@ -124,3 +124,13 @@ end obj:<?x?>() ]] + +TEST [[ +local mt = {} + +mt.<!xx!> = 1 + +mt.yy = function (self) + print(self.<?xx?>) +end +]] |