lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

泛型和alias联合使用的问题

Open Silent-zzz opened this issue 6 months ago • 3 comments

Issue Description

Image

Additional Notes

使用泛型返回alias类型似乎没有办法正确的返回类型, 我希望在new中传入类名创建对象,并且强制调用init才能返回对象,不过没有找到正确的注释办法

Silent-zzz avatar Jun 04 '25 01:06 Silent-zzz

Sumneko Lua translate bot


Title: Problem of the use of generics and alias

Issues-translate-bot avatar Jun 04 '25 01:06 Issues-translate-bot

应该不支持这个特性, 看会不会有人替你实现这个特性

CppCXY avatar Jun 04 '25 02:06 CppCXY

Sumneko Lua translate bot


This feature should not be supported, see if someone will implement this feature for you

Issues-translate-bot avatar Jun 04 '25 02:06 Issues-translate-bot