summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-15 03:04:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-15 03:04:44 +0800
commit89631834c454f1b87e767af6a576180e2bb6e145 (patch)
treeed9eec4271572a347529c39e6bbc83af091af120 /test
parente868888ba9a4b45b23cf07fef2e570ed9a27bc4e (diff)
downloadlua-language-server-89631834c454f1b87e767af6a576180e2bb6e145.zip
fix
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua11
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
+]]