mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
385 B
Solidity
10 lines
385 B
Solidity
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.
|