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

9 lines
246 B
Solidity
Raw Normal View History

2020-06-23 12:14:24 +00:00
abstract contract C {
constructor() internal {}
2018-04-17 09:39:40 +00:00
}
contract D is C {
2020-06-23 12:14:24 +00:00
constructor() { }
2018-04-17 09:39:40 +00:00
}
// ----
// Warning 2462: (23-48): Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.