Skip to content

Include ref info for parameters > 16 in synthesized delegate type name#56233

Merged
cston merged 1 commit intodotnet:mainfrom
cston:55570
Sep 9, 2021
Merged

Include ref info for parameters > 16 in synthesized delegate type name#56233
cston merged 1 commit intodotnet:mainfrom
cston:55570

Conversation

@cston
Copy link
Copy Markdown
Contributor

@cston cston commented Sep 7, 2021

Fixes #55570.

@cston cston requested a review from a team as a code owner September 7, 2021 23:39
@ghost ghost added the Area-Compilers label Sep 7, 2021
builder.Append("{");

int i = 0;
foreach (int byRefIndex in this.Words())
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

int

Words() is IEnumerable<ulong>.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤣 I probably should have noticed that when I moved the code

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The language/tooling should have guard rails in place to make this harder to do by accident. Unfortunate that there isn't a reasonable place for people to insert an "explicit" cast.

@cston cston merged commit 5a0a1c2 into dotnet:main Sep 9, 2021
@ghost ghost added this to the Next milestone Sep 9, 2021
@cston cston deleted the 55570 branch September 9, 2021 00:36
@Cosifne Cosifne modified the milestones: Next, 17.0.P5 Sep 27, 2021
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.

The 17th parameter of a synthesized delegate doesn't have ref information encoded

5 participants