solidity/test/libsolidity/syntaxTests/modifiers/base_constructor_double_invocation.sol

8 lines
246 B
Solidity

contract C { constructor(uint a) public {} }
contract B is C {
constructor() C(2) C(2) public {}
}
// ----
// DeclarationError: (81-85): Base constructor arguments given twice.
// DeclarationError: (86-90): Base constructor already provided.