solidity/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol
2022-04-01 23:41:18 -05:00

8 lines
304 B
Solidity

contract Base {
constructor(uint) {}
}
contract Derived is Base(2) { }
contract Derived2 is Base(), Derived() { }
// ----
// TypeError 7927: (94-100='Base()'): Wrong argument count for constructor call: 0 arguments given but expected 1. Remove parentheses if you do not want to provide arguments here.