Skip to content

Add more information in case of incompatible constructor signature #2… #30371

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

Conversation

amaksimovich2
Copy link
Contributor

Fixes #21253 This is my first pull request to TypeScript, so I will free for your comments. At first I tried to implement code from pr of previous contributors, but one test "errorsWithInvokablesInUnions01" failed. So I investigated a problem and added new check on source/target objectFlag comparison. Actually I still not
so good familiar with TS logic, so maybe it's wrong way. If it's true, give me feedback, please.

@msftclas
Copy link

msftclas commented Mar 13, 2019

CLA assistant check
All CLA requirements met.

@amaksimovich2
Copy link
Contributor Author

@DanielRosenwasser can you or maybe someone else check this pr? Or it will be check as soon as the turn comes?

@@ -2601,6 +2601,10 @@
"category": "Error",
"code": 2753
},
"Types of constructor signature are incompatible.": {
"category": "Error",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please indent the inner properties like the rest of the file

@RyanCavanaugh
Copy link
Member

@amaksimovich2 overall looks good. Can you resolve the merge conflict and add the repro from #31046 as well? Thanks!

@RyanCavanaugh RyanCavanaugh self-assigned this Apr 30, 2019
@sandersn sandersn added the For Backlog Bug PRs that fix a backlog bug label Feb 1, 2020
@sandersn
Copy link
Member

This PR hasn't seen any activity for quite a while, so I'm going to close it to keep the number of open PRs manageable. Feel free to open a fresh PR or continue the discussion here.

@sandersn sandersn closed this Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Need better error message about incompatible constructor signature
4 participants