Investigate why IsMethod
and IsProperty
don't act as expected for generated methods/properties
#17641
Labels
Area-Compiler-CodeGen
IlxGen, ilwrite and things at the backend
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Follow up to #17301 - there you can see the discrepancy described in this comment #17301 (comment)
This discrepancy could be a source of more undiscovered bugs similar to 17301
Repro steps
Inspect a generated code like
IsUnionCaseTester
property, orEquals
method by enumerating declarations from assembly contents, like in the snippet from the comment linked above:vs
Inspect uses of these generated properties/methods in user code with
GetSymbolUseAtLocation
Expected behavior
IsUnionCaseTester
property always hasIsProperty
= true andEquals
always hasIsMethod
= trueActual behavior
When enumerating declarations in generated code, these generated properties/methods are not marked as such.
The text was updated successfully, but these errors were encountered: