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

8 lines
204 B
Solidity
Raw Normal View History

contract base { function foo() public virtual; }
contract derived {
base b;
function foo() public { b = new base(); }
}
// ----
// TypeError: (0-48): Contract "base" should be marked as abstract.