mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
275 B
Solidity
9 lines
275 B
Solidity
contract C {
|
|
constructor() internal {}
|
|
}
|
|
contract D {
|
|
function f() public { C c = new C(); c; }
|
|
}
|
|
// ----
|
|
// DeclarationError 1845: (14-39): Non-abstract contracts cannot have internal constructors. Remove the "internal" keyword and make the contract abstract to fix this.
|