-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Allow contract's public state variable to implement interface function #3514
Comments
I fear we need a centralized point where we discuss how function inheritance is supposed to work in the future. |
Good point. In the Swift Evolution process, this would call for a manifesto. We could call it the Inheritance Manifesto. This would document what is going changing, the motivation and how to make the new behavior self-consistent. If would like me to do this, maybe we could have a quick phone call. This will let me understand what type of end product would be accepted. |
Well as a first step we should collect all the relevant issue numbers in one place. There are probably close to 10 issues talking about different facets of inheritance. |
RUNNING TALLY:
|
@fulldecent I created a project https://github.com/ethereum/solidity/projects/9 - not sure if you can add items there, but if you tell me, I will add them. |
Also created umbrella issue: #3698 |
Interested to know the status of this as I seem to be getting some inconsistent behaviour between ~0.4.24 and 0.5.xx |
@alsco77 This discussion is now rolled into #3729 This issue can be closed when the conclusion is reached, wherever that discussion happens. |
Implemented in #7839 |
Test case
Current outcome
Expected outcome
Compiles successfully
Discussion
Getter functions are defined in the documentation at http://solidity.readthedocs.io/en/develop/contracts.html#visibility-and-getters:
In contract
C
, the implicit functionfunction bob() external returns (int);
is generated for the public variableint public bob;
. Therefore the contract should be a valid implementation of the interface.References:
The text was updated successfully, but these errors were encountered: