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

10 lines
385 B
Solidity
Raw Normal View History

2018-04-17 09:39:40 +00:00
contract C {
function C() internal {}
}
contract D is C {
function D() public {}
}
// ----
// Warning: (14-38): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
// Warning: (60-82): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.