-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need better error message about incompatible constructor signature #21253
Comments
Can I take a stab of this, is anyone working on it? |
Sure! Go for it. You'll need to modify To be more precise, it should be "Types of construct signature are incompatible.". |
Hi, @DanielRosenwasser. I'm looking into code and I have 2 question:
A:
B:
And C is before the last return. I can't figure out where to place calls by just looking at it, and would like put in As a newbie I am always wondering how does an export reason through code, and any pointers would be appreciated. Thank you. |
I realized that I was coding the wrong way, and there is an alternative solution, which I will open a new pull request to. |
Hi @DanielRosenwasser |
Hi! Can I try to do this issue? |
See also #31046 |
Thanks @a-tarasyuk! |
TypeScript Version: 2.7.0-dev.201xxxxx
Code
Expected behavior:
Error message should tell the reason why constructor signatures are incompatible.
Actual behavior:
This is not particularly helpful, see comments below this answer, especially in comparison to the error message about incompatible methods:
So for constructor signature, ideally, the message could be
The text was updated successfully, but these errors were encountered: