solidity/test/libsolidity/syntaxTests/modifiers/base_constructor_double_invocation.sol
2018-04-11 22:00:21 +02:00

8 lines
237 B
Solidity

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