solidity/test/libsolidity/syntaxTests/abstract/abstract_contract_instantiation.sol

13 lines
326 B
Solidity

abstract contract AbstractContract {
constructor() public { }
function utterance() public returns (bytes32) { return "miaow"; }
}
contract Test {
function create() public {
AbstractContract ac = new AbstractContract();
}
}
// ----
// TypeError 4614: (215-235): Cannot instantiate an abstract contract.