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

8 lines
242 B
Solidity
Raw Normal View History

2020-06-23 12:14:24 +00:00
contract C { constructor(uint a) {} }
2018-03-16 11:45:12 +00:00
contract B is C {
2020-06-23 12:14:24 +00:00
constructor() C(2) C(2) {}
2018-03-16 11:45:12 +00:00
}
// ----
2020-06-23 12:14:24 +00:00
// DeclarationError 3364: (74-78): Base constructor arguments given twice.
// DeclarationError 1697: (79-83): Base constructor already provided.