Skip to content

windows-rdl duplicate symbols #4186

Description

@kennykerr

Issue copied from #4163 to create a dedicated issue.

There's another unrelated yet prevalent issue that's probably not exclusive to properties: Symbols can be repeated within the same scope. Consider the following RDL

#[winrt]
mod Test {
    interface ITest {
        foo: u32;
        foo: u32;
    }
}

This round-trips perfectly and makes for a valid interface description in terms of the ABI.

The challenge is that while this particular case is not valid and should be avoided, there are other cases where duplicate symbols make sense. Interface method overloads and arch-specific type/method/struct/const overloads to name a few.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions