Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Fix "fixed" type attribute not inheriting for empty objects #701

Merged
merged 2 commits into from
May 20, 2019
Merged

Conversation

kylef
Copy link
Member

@kylef kylef commented May 13, 2019

For some reason, the logic for inheriting "fixed" requires an object to have a value. An empty object should inherit fixed too.

@kylef kylef requested a review from tjanc May 13, 2019 21:08
@@ -38,7 +38,7 @@ bool refract::inheritsFixed(const IElement& e)

bool refract::inheritsFixed(const ObjectElement& e)
{
return definesValue(e);
Copy link
Member Author

@kylef kylef May 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tjanc is there any reason why this logic requires values in an object to inherit fixed? I cannot find any cases this change would break, there are no unit/integration tests which cover the case of empty objects and inheriting fixed type attribute.

@tjanc tjanc merged commit 045fbe1 into master May 20, 2019
@tjanc tjanc deleted the kylef/686 branch May 20, 2019 14:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants