Skip to content

CommandInfo: allow shadowed Service parameters#422

Merged
ctrueden merged 1 commit intomasterfrom
duplicate-service-parameters
May 11, 2021
Merged

CommandInfo: allow shadowed Service parameters#422
ctrueden merged 1 commit intomasterfrom
duplicate-service-parameters

Conversation

@imagejan
Copy link
Member

When a Command extends another Command, we often have both classes use specific services.
It's better to be able to name these Service parameters consistently, than to avoid shadowing parameters at all costs. So let's exclude all Service parameters from the validity check.

Closes #408.

When a command extends another command, we often have both classes use specific services.
It's better to be able to name these Service parameters consistently, than to avoid shadowing parameters at all costs. So let's exclude all Service parameters from the validity check.
@ctrueden ctrueden merged commit beb6de2 into master May 11, 2021
@ctrueden
Copy link
Member

Great!

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.

Allow shadowing service fields when extending commands

2 participants