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

11 lines
425 B
Solidity
Raw Normal View History

contract Base {
2020-06-23 12:14:24 +00:00
constructor(uint, uint) {}
}
contract Derived is Base(2) { }
contract Derived2 is Base {
2020-06-23 12:14:24 +00:00
constructor() Base(2) { }
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 7927: (67-74): Wrong argument count for constructor call: 1 arguments given but expected 2. Remove parentheses if you do not want to provide arguments here.
// TypeError 2973: (123-130): Wrong argument count for modifier invocation: 1 arguments given but expected 2.