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

13 lines
319 B
Solidity
Raw Normal View History

abstract contract AbstractContract {
2020-06-23 12:14:24 +00:00
constructor() { }
function utterance() public returns (bytes32) { return "miaow"; }
}
contract Test {
function create() public {
AbstractContract ac = new AbstractContract();
}
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 4614: (208-228): Cannot instantiate an abstract contract.