This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Question to synthesized GeneratedNames for yield statement #68542
Labels
You can continue the conversation there. Go to discussion →
Hi,
I would need some clarification on how the synthesized names are generated for yield statements. We have a bug in our
coverage tool coverlet-coverage/coverlet#1484 because of this.
To be more precise, when having a simple class like the following
the compiler is adding a nested type called
<All>d__0
So now when I add a simple field like the following
the compiler is adding nested type called
<All>d__1
Our algorithem currently only counts methods for the ordinal number and I guess this is the problem. What exactly (fields, properties, ...) do I need to consider when computing this generated name?
The text was updated successfully, but these errors were encountered: