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

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.