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

8 lines
246 B
Solidity
Raw Normal View History

2018-04-11 15:58:53 +00:00
contract C { constructor(uint a) public {} }
2018-03-16 11:45:12 +00:00
contract B is C {
2018-04-11 15:58:53 +00:00
constructor() C(2) C(2) public {}
2018-03-16 11:45:12 +00:00
}
// ----
// DeclarationError: (81-85): Base constructor arguments given twice.
2018-04-11 15:58:53 +00:00
// DeclarationError: (86-90): Base constructor already provided.