Problem with constructor becoming return type #643
Unanswered
mkster
asked this question in
General Questions
Replies: 2 comments 3 replies
|
It is currently not possible to achieve your needs. |
2 replies
|
I'm facing the same issue. For my C++ defined classes I've tried the same as mkster has done. I also use Lua defined classes and like my C++ ones, the constructor is implemented as a __call metamethod on the class table (C++ are userdata but same deal). This is the last piece of the puzzle for me, and would mean I don't have to add cluttering @type annotations everywhere like this.... @mkster Did you file an issue? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am defining a class A with constructor like this
Hovering anything that returns A gives me the following hover hint:
Its there a way to specify the return type as class only to get the following?
All reactions