-
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
Interfaces: require external visibility #3442
Comments
@axic why did we not disallow public in interfaces? |
I thought it only supports Removing the visibility specifier would be a bad idea because we require it everywhere else (starting 0.5.0) and that would create an exception, which could be confusing. |
Understood, issue updated |
Actually it seems this is a duplicate of #2330. |
This issue regards requiring Issue #2330 regards subclassing ("implement"?, "overriding"?) interfaces with a public function. |
Right, it seems to be a mix, though there's this also: #2330 (comment) |
Actually #3038 has implemented this a while back for 0.5.0 mode. We can however make |
The Ethereum ABI specification does not make a distinction between
external
andpublic
functions. Therefore theInterface
keyword likewise should not so distinguish.Currently
private
andinternal
are disallowed ininterfaces
s.For clarity, only
external
functions should be allowed ininterface
s.The text was updated successfully, but these errors were encountered: