solidity/test/libsolidity/syntaxTests/inheritance/base_arguments_multiple_inheritance.sol

10 lines
229 B
Solidity
Raw Normal View History

contract Base {
2020-06-23 12:14:24 +00:00
constructor(uint) { }
}
contract Base1 is Base(3) {}
contract Derived is Base, Base1 {
2020-06-23 12:14:24 +00:00
constructor(uint i) Base(i) {}
}
// ----
2020-06-23 12:14:24 +00:00
// DeclarationError 3364: (131-138): Base constructor arguments given twice.