Tencent / LuaHelper

LuaHelper is a High-performance lua VSCode plugin, Language Server Protocol for lua.
Other
631 stars 94 forks source link

能否添加类对象返回自身的类型推断 #139

Open Nuctori opened 1 year ago

Nuctori commented 1 year ago

如题,目前luaHelper 对于返回self的方法没办法自动推断类型,希望增加支持

`---@class myClass local myClass = class("myClass")

function myClass:GetSelf() return self -- deduce return type is any now, not myClass end `