solidity/test/libsolidity/syntaxTests/missing_functions_duplicate_bug.sol

27 lines
582 B
Solidity
Raw Normal View History

2020-05-05 14:53:30 +00:00
pragma experimental ABIEncoderV2;
contract Ownable {
address private _owner;
modifier onlyOwner() {
require(msg.sender == _owner, "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public onlyOwner { }
}
library VoteTiming {
function init(uint phaseLength) internal pure {
require(true, "");
}
}
contract Voting is Ownable {
2020-06-23 12:14:24 +00:00
constructor() {
2020-05-05 14:53:30 +00:00
VoteTiming.init(1);
}
}
// ----
2020-06-22 16:43:57 +00:00
// Warning 5667: (299-315): Unused function parameter. Remove or comment out the variable name to silence this warning.