solidity/test/libsolidity/syntaxTests/constructor/two_constructors.sol

7 lines
146 B
Solidity

contract test {
constructor(uint) public { }
constructor() public {}
}
// ----
// DeclarationError: (47-70): More than one constructor defined.