aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/modifiers/base_constructor_double_invocation.sol
blob: 49d0d7bf42a8c2cfc266cf979e1c3fade5e24c03 (plain) (blame)
1
2
3
4
5
6
7
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.