Skip to content

Ilspy fails to correctly generate the RECORD WITH statement for some complex records when targeting .NET Framework 4.7.2. #3593

@sonyps5201314

Description

@sonyps5201314

Use the code in the attachment file TestRecordWith.zip, compile it, and open TestRecordWith.exe in bin\Debug\net472 with ilspy. You will see the following error output:
Image
Open TestRecordWith.dll in bin\Debug\net9.0 with ilspy and you will see the following correct output:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDecompilerThe decompiler engine itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions