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

6 lines
185 B
Solidity

abstract contract C {
constructor() public {}
}
// ----
// DeclarationError 8295: (23-46): Abstract contracts cannot have public constructors. Remove the "public" keyword to fix this.