IntelliJ-EmmyLua icon indicating copy to clipboard operation
IntelliJ-EmmyLua copied to clipboard

希望支持generic class

Open mybios opened this issue 5 years ago • 6 comments

在导出UE4或其他引擎逻辑时,会返回一些泛型实例化的类,如TArray/TMap/TSet等,希望emmylua支持这种写法,以便支持TArray这样的类型定义,通过泛型推导后,应该可以把Get返回值类型也推导出来:

` ---@generic T ---@class TArray< T> local TArray = {}

---@param index integer ---@return T function TArray:Get(index)end `

mybios avatar Oct 16 '19 02:10 mybios

顶一下

neroishero avatar Nov 25 '19 05:11 neroishero

https://github.com/EmmyLua/IntelliJ-EmmyLua/pull/342

Benjamin-Dobell avatar Mar 30 '20 08:03 Benjamin-Dobell

没有官方人员关注吗

iricwang avatar Sep 22 '22 04:09 iricwang

没有官方人员关注吗

没有

CppCXY avatar Sep 22 '22 11:09 CppCXY

I really wish we had this.

c01dc0ffee avatar Jul 30 '24 21:07 c01dc0ffee

I really wish we had this.

vscode-emmylua support this, but donot need add generic

CppCXY avatar Jul 31 '24 01:07 CppCXY