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.
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
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.