Skip to content

25840 - Add a more meaningful error message to the case when calling a public static method on an instance#25922

Merged
sandersn merged 3 commits into
microsoft:masterfrom
a-tarasyuk:feature/25840-add-a-more-meaningful-error-message-to-the-case-when-calling-a-public-static-method-on-an-instance
Aug 6, 2018
Merged

25840 - Add a more meaningful error message to the case when calling a public static method on an instance#25922
sandersn merged 3 commits into
microsoft:masterfrom
a-tarasyuk:feature/25840-add-a-more-meaningful-error-message-to-the-case-when-calling-a-public-static-method-on-an-instance

Conversation

@a-tarasyuk
Copy link
Copy Markdown
Contributor

Fixes #25840

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Looks like a good start.

Comment thread src/compiler/checker.ts Outdated
Comment thread src/compiler/checker.ts Outdated
Comment thread src/compiler/checker.ts Outdated
Comment thread src/compiler/checker.ts
Comment thread src/compiler/checker.ts Outdated
Comment thread tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts Outdated
Comment thread tests/baselines/reference/classSideInheritance1.errors.txt Outdated
@a-tarasyuk a-tarasyuk force-pushed the feature/25840-add-a-more-meaningful-error-message-to-the-case-when-calling-a-public-static-method-on-an-instance branch 5 times, most recently from c629c8b to ee1a506 Compare July 26, 2018 09:56
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Jul 30, 2018

@sandersn can you take another look please.

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

See my previous comment about a change to typeHasStaticPropertyName.

… feature/25840-add-a-more-meaningful-error-message-to-the-case-when-calling-a-public-static-method-on-an-instance
@a-tarasyuk a-tarasyuk force-pushed the feature/25840-add-a-more-meaningful-error-message-to-the-case-when-calling-a-public-static-method-on-an-instance branch from ee1a506 to 88b2f6a Compare August 5, 2018 11:26
@a-tarasyuk a-tarasyuk force-pushed the feature/25840-add-a-more-meaningful-error-message-to-the-case-when-calling-a-public-static-method-on-an-instance branch from e20b0c3 to 0e06a95 Compare August 5, 2018 12:38
@RyanCavanaugh
Copy link
Copy Markdown
Member

@sandersn can you review the recent commit?

@sandersn sandersn merged commit 37b9a6b into microsoft:master Aug 6, 2018
@sandersn
Copy link
Copy Markdown
Member

sandersn commented Aug 6, 2018

Thanks for the PR @a-tarasyuk! This is a nice contribution to our improved error messages effort.

@a-tarasyuk
Copy link
Copy Markdown
Contributor Author

@sandersn Thank you very much for your help! 👍 :)

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants