-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Discuss: disallow visibility specifiers in constructor functions #2638
Comments
Prior reading #979 😉 |
Example code:
|
@federicobond the reason is explained in #3132. Is there any need to keep this issue? |
No need. We can close it. |
I'm not sure I understand the full implications of public versus internal constructor functions, but I know I'm getting a compiler warning on the "standard" erc20 token contract in the latest solc compiler version. Is it safe to just make the constructor as public? |
I was doing some experiments with visibility specifiers and noticed that constructor functions can be defined as
internal
. This causes the contract to be marked as abstract, but child contracts can call the super constructor without problems.Are there any real world use cases of this? Is it something we would like to support?
The text was updated successfully, but these errors were encountered: