solidity/test/libsolidity/syntaxTests/constructor/inconstructible_abstract_contract.sol
2022-04-01 23:41:18 -05:00

9 lines
185 B
Solidity

abstract contract C {
constructor() {}
}
contract D {
function f() public { C c = new C(); c; }
}
// ----
// TypeError 4614: (84-89='new C'): Cannot instantiate an abstract contract.