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

8 lines
298 B
Solidity
Raw Normal View History

contract Base {
constructor(uint) public {}
}
contract Derived is Base(2) { }
contract Derived2 is Base(), Derived() { }
// ----
2018-07-11 11:26:52 +00:00
// TypeError: (101-107): Wrong argument count for constructor call: 0 arguments given but expected 1. Remove parentheses if you do not want to provide arguments here.