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

9 lines
246 B
Solidity

abstract contract C {
constructor() internal {}
}
contract D is C {
constructor() { }
}
// ----
// Warning 2462: (23-48): Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.