solidity/test/libsolidity/syntaxTests/constructor/public_constructor_abstract.sol
2022-04-01 23:41:18 -05:00

6 lines
211 B
Solidity

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