Skip to content

Conversation

@fra-pa
Copy link
Contributor

@fra-pa fra-pa commented Apr 30, 2021

This fixes the problem as long as the properties have different namespaces.

Naming conflicts resulting from multiple inheritance within the same model are not resolved. E.g.:
multiple-inheritance-same-model

If the scope for namespaces were expanded to types, the properties could be seperated and mapped accordingly. But I doubt that this is necessary (or even useful) as long as moddle has no explicit namespacing (e.g. with a new keyword; which could be a useful extension). IMO, a proper model design should avoid this kind of conflicts and it seems to be quite some effort to implement.

Closes #36.

fra-pa added 4 commits April 29, 2021 10:49
Test if DescriptorBuilder throws an exception if an already defined
property is redefined without redefine specification.
Allow a type to inherit multiple types from different namespaces with
equal named properties in their inheritance chain.
@fra-pa
Copy link
Contributor Author

fra-pa commented May 13, 2021

This PR is now obsolete as I created a new one with squashed commits to hopefully better follow your contribution guidlines.

I'll keep this branch for reference as long as this issue is open.

@fra-pa fra-pa closed this May 13, 2021
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.

Exception in DescriptorBuilder when inherited properties have the same name

1 participant