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

[Feature request] generics in overload

Open lua-rocks opened this issue 4 years ago • 7 comments

As far as I know, it is not possible to use @generic in @overload?

I have a table Object that has a __call metamethod, so class Object can be used as function: Object() == Object:new() ... And I want to overload class Object with function new(). This function use generics 🤯

lua-rocks avatar Oct 10 '21 17:10 lua-rocks