mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
177 B
Solidity
9 lines
177 B
Solidity
|
abstract contract C {
|
||
|
constructor() {}
|
||
|
}
|
||
|
contract D {
|
||
|
function f() public { C c = new C(); c; }
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError 4614: (84-89): Cannot instantiate an abstract contract.
|