Skip to content

Enforce keyword order between override and static/async#43660

Merged
andrewbranch merged 2 commits into
microsoft:masterfrom
andrewbranch:bug/43606
Apr 15, 2021
Merged

Enforce keyword order between override and static/async#43660
andrewbranch merged 2 commits into
microsoft:masterfrom
andrewbranch:bug/43606

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

The order is static override async.

Fixes #43606

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Apr 13, 2021
@andrewbranch

Copy link
Copy Markdown
Member Author

Some tests were already using override static. I have literally no opinion on this, aside from that we should enforce an order, since pretty much everything else has an order enforced.

@Kingwl

Kingwl commented Apr 15, 2021

Copy link
Copy Markdown
Contributor

The current check of modifier order is painful. Are there any possible to map modifiers into some priority. And we just check the order of priority value.

@andrewbranch

Copy link
Copy Markdown
Member Author

I agree @Kingwl, looking at that function, it’s begging to be refactored into something more declarative. Personally I would love to see something like that implemented.

@DanielRosenwasser

Copy link
Copy Markdown
Member

@dsherret

@DanielRosenwasser

Copy link
Copy Markdown
Member

@nicolo-ribaudo

@nicolo-ribaudo

Copy link
Copy Markdown
Contributor

Thanks for the heads up @DanielRosenwasser!

@nicolo-ribaudo

Copy link
Copy Markdown
Contributor

@andrewbranch

Copy link
Copy Markdown
Member Author

Yes 🤦

@Kingwl

Kingwl commented Apr 27, 2021

Copy link
Copy Markdown
Contributor

🤦

@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

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require either async override or override async (don't allow both)

5 participants