-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix overwrite subsection #844
Conversation
72e4465
to
109b348
Compare
@tagomoris Review this PR, please. |
@@ -63,21 +63,36 @@ def multi? | |||
end | |||
|
|||
def final? | |||
@final | |||
@final == true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!!@final
looks normal.
Great fix! |
I've fixed and pushed changes for all comments. |
OK, Tests are green (after retries). |
@tagomoris Ok, I will squash and force push later. |
* overwriting config_section options like required/multi/alias breaks behavior of `super` * so subclass must not overwrite these options * subsection definitions of subsections (Hash) is simply merged * it is bug, because same section definition like <a> is overwritten by subclass * under this bug, subclass MUST repeat superclass's definition, and add original definition * but this is impossible in the real world * subsection definitions should be merged correctly
In previous version, * A (not finalized) * B < A (finalized) * C < B (inherits finalized) C displays default value of itself. But expected values are B's default value.
da3b5fc
to
5e4b0f4
Compare
Squashed. |
Travis CI failed, but it is not related to my changes. |
I requested rebuild and now it's green. |
Merged. Thank you! |
behavior of
super
subclass
original definition