solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/029_create_abstract_contract.sol
2019-11-05 13:55:31 +01:00

8 lines
196 B
Solidity

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