diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-15 03:04:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-15 03:04:44 +0800 |
commit | 89631834c454f1b87e767af6a576180e2bb6e145 (patch) | |
tree | ed9eec4271572a347529c39e6bbc83af091af120 /test/type_inference | |
parent | e868888ba9a4b45b23cf07fef2e570ed9a27bc4e (diff) | |
download | lua-language-server-89631834c454f1b87e767af6a576180e2bb6e145.zip |
fix
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 7b5fb332..df45dd9d 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1471,3 +1471,14 @@ TEST 'A' [[ ---@type A local <?x?> = nil ]] + +TEST 'A' [[ +---@class A +---@field b B +local mt + +function mt:f() + self.b:x() + print(<?self?>) +end +]] |