Skip to content

Allow delegate*<...>? to be scanned/parsed and add diagnostic to binder#62104

Merged
333fred merged 2 commits intomainfrom
perlinadam/bug-fix-53973
Jun 27, 2022
Merged

Allow delegate*<...>? to be scanned/parsed and add diagnostic to binder#62104
333fred merged 2 commits intomainfrom
perlinadam/bug-fix-53973

Conversation

@adamperlin
Copy link
Copy Markdown
Contributor

Addresses #53973 . Allows ScanType() and ParseType() to recognize delegate*<...>? syntax. Note that there is already an existing diagnostic which is triggered by the binder in this case because delegate* is already disallowed as a type parameter. However, there is now a new diagnostic, ErrFunctionPointersCannotBeNullable to make it extra clear that a nullable function pointer is not allowed.

@adamperlin adamperlin requested a review from a team as a code owner June 23, 2022 20:42
@ghost ghost added the Area-Compilers label Jun 23, 2022
@dnfadmin
Copy link
Copy Markdown

dnfadmin commented Jun 23, 2022

CLA assistant check
All CLA requirements met.

@adamperlin adamperlin requested a review from 333fred June 23, 2022 20:42
Copy link
Copy Markdown
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Done review pass (commit 1).

@adamperlin adamperlin requested a review from jcouv June 23, 2022 21:35
@adamperlin adamperlin requested a review from 333fred June 24, 2022 21:30
Copy link
Copy Markdown
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

LGTM (commit 2). @jcouv for a second review.

Copy link
Copy Markdown
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

LGTM (commit 2). @jcouv for a second review.

Copy link
Copy Markdown
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 2). The main branch is closed at the moment, but when it re-opens, please use the Squash option when merging the PR.

@jcouv jcouv self-assigned this Jun 26, 2022
@333fred
Copy link
Copy Markdown
Member

333fred commented Jun 27, 2022

To avoid this getting out of date, I'm going to go ahead and merge this.

@333fred 333fred merged commit 07b20b7 into main Jun 27, 2022
@ghost ghost added this to the Next milestone Jun 27, 2022
@333fred 333fred deleted the perlinadam/bug-fix-53973 branch June 27, 2022 17:33
@RikkiGibson RikkiGibson modified the milestones: Next, 17.3 P3 Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants