typeshare-old icon indicating copy to clipboard operation
typeshare-old copied to clipboard

Swift generation with swift prefix outputs wrong type

Open pudgeball opened this issue 5 years ago • 0 comments

enum Color {
    Red,
    Blue,
}

struct Palette {
    colors: Vec<Color>,
}

This will generate the wrong type for colors. We need to add a way out if the type we're going to emit matches one we've already (or will) emit and switch it with the properly renamed type.

pudgeball avatar Aug 19 '19 14:08 pudgeball