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

6 lines
217 B
Solidity

contract C {
constructor() internal {}
}
// ----
// DeclarationError 1845: (14-39): Non-abstract contracts cannot have internal constructors. Remove the "internal" keyword and make the contract abstract to fix this.