Skip to content

Disallow virtual and override for constructors.#8675

Merged
ekpyron merged 1 commit intodevelopfrom
disallowOverrideVirtualConstructor
Apr 15, 2020
Merged

Disallow virtual and override for constructors.#8675
ekpyron merged 1 commit intodevelopfrom
disallowOverrideVirtualConstructor

Conversation

@ekpyron
Copy link
Copy Markdown
Collaborator

@ekpyron ekpyron commented Apr 15, 2020

Came up in chat in a dicussion with @yann300

Copy link
Copy Markdown
Contributor

@chriseth chriseth left a comment

Choose a reason for hiding this comment

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

What happened before? Was it just ignored?

@ekpyron
Copy link
Copy Markdown
Collaborator Author

ekpyron commented Apr 15, 2020

What happened before? Was it just ignored?

I haven't actually checked in detail, but yes: I'm pretty sure it was just ignored. Not sure what effect virtual could have and after an override it still complained about the contract having to be abstract due to missing base constructor arguments, so also ignored.

@ekpyron ekpyron merged commit 10879bc into develop Apr 15, 2020
@ekpyron ekpyron deleted the disallowOverrideVirtualConstructor branch April 15, 2020 14:04
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.

2 participants