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

9 lines
274 B
Solidity

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