Skip to content

Ensure that multiple-inheritance scenarios generate unique field names - #373

Merged
tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:main
Aug 13, 2022
Merged

Ensure that multiple-inheritance scenarios generate unique field names#373
tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:main

Conversation

@tannergooding

Copy link
Copy Markdown
Member

This resolves #367 and gives multiple-inheritance Base fields the same convention as the automatic Anonymous fields scenario.

In particular, if only one base exists the name is Base. If more than one exists, it is Base1, Base2, ....

@tannergooding
tannergooding merged commit b4aff2b into dotnet:main Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Struct with two or more bases will have duplicate member names

1 participant