solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/029_create_abstract_contract.sol

8 lines
196 B
Solidity
Raw Normal View History

contract base { function foo() public; }
contract derived {
base b;
function foo() public { b = new base(); }
}
// ----
2019-10-23 20:10:12 +00:00
// TypeError: (0-40): Contract "base" should be marked as abstract.