Skip to content

Conversation

@rbuckton
Copy link
Contributor

Fixes #29427

@rbuckton rbuckton requested a review from weswigham March 19, 2019 18:47
>C : C

method(@dec this: C) {}
>method : (: any, this: C) => void
Copy link
Member

Choose a reason for hiding this comment

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

this type seems incorrectly printed?

Copy link
Member

Choose a reason for hiding this comment

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

Are decorators on this parameters even a thing? O.o

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's because this is a parse error (i.e. @dec this fails because this isn't an identifier), so you end up with a missing identifier.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, decorators on this parameters were never valid, but we did not have a test that reflects this. I opted to add one while investigating this fix

Copy link
Member

Choose a reason for hiding this comment

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

Huh. Neat.

@rbuckton rbuckton merged commit 2932421 into master Mar 20, 2019
@rbuckton rbuckton deleted the fix29427 branch March 20, 2019 19:56
@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