summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-06 20:49:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-06 20:49:07 +0800
commit73c4266110bd1013610db15a7e19d40498687b09 (patch)
tree2e017e058cc38003beeb128b44adf263e03b1f56 /test/type_inference
parentc3a596e3056315bb2501351aaa049a19bc91b6e8 (diff)
downloadlua-language-server-73c4266110bd1013610db15a7e19d40498687b09.zip
fix may infer a custom class as a string
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index c07074f7..77440cf6 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -882,3 +882,10 @@ print(t.<?x?>)
TEST 'table' [[
local <?t?> = setmetatable({}, { __index = function () end })
]]
+
+TEST 'player' [[
+---@class player
+local t
+
+<?t?>:getOwner()
+]]