Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

C# code generation fails for UDTs with named items called Item*. #50

@cgranade

Description

@cgranade

Describe the bug

I will readily admit that no one should ever write this code, but if one defines a UDT with named items such as Item1 and Item2, compiling the generated C# code fails. In particular, compilation fails even if the affected UDT is never actually used.

To Reproduce

newtype Evil = (
    Item2: Int,
    Item1: String
);

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions