From 73c4266110bd1013610db15a7e19d40498687b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 6 Jul 2021 20:49:07 +0800 Subject: fix may infer a custom class as a string --- test/type_inference/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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.) TEST 'table' [[ local = setmetatable({}, { __index = function () end }) ]] + +TEST 'player' [[ +---@class player +local t + +:getOwner() +]] -- cgit v1.2.3