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

10 lines
264 B
Solidity
Raw Normal View History

pragma experimental "v0.5.0";
contract Base {
constructor(uint) public {}
}
contract Derived is Base(2) { }
contract Derived2 is Base(), Derived() { }
// ----
// TypeError: (132-138): Wrong argument count for constructor call: 0 arguments given but expected 1.