solidity/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses_V050.sol
2018-04-10 14:08:22 +02:00

10 lines
264 B
Solidity

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.