mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Implement overridding of functions by public variables
This commit is contained in:
committed by
Mathias Baumann
parent
52467108ac
commit
b7d5de59c5
@@ -73,9 +73,10 @@ private:
|
||||
/// Performs various checks related to @a _function overriding @a _super like
|
||||
/// different return type, invalid visibility change, etc.
|
||||
/// Also stores @a _super as a base function of @a _function in its AST annotations.
|
||||
void checkFunctionOverride(FunctionDefinition const& _function, FunctionDefinition const& _super);
|
||||
template<class T>
|
||||
void checkFunctionOverride(T const& _overriding, FunctionDefinition const& _super);
|
||||
void overrideListError(FunctionDefinition const& function, std::set<ContractDefinition const*, LessFunction> _secondary, std::string const& _message1, std::string const& _message2);
|
||||
void overrideError(CallableDeclaration const& function, CallableDeclaration const& super, std::string message, std::string secondaryMsg = "Overridden function is here:");
|
||||
void overrideError(Declaration const& _overriding, Declaration const& _super, std::string _message, std::string _secondaryMsg = "Overridden function is here:");
|
||||
void checkAbstractFunctions(ContractDefinition const& _contract);
|
||||
/// Checks that the base constructor arguments are properly provided.
|
||||
/// Fills the list of unimplemented functions in _contract's annotations.
|
||||
|
||||
Reference in New Issue
Block a user