2018-07-02 15:47:48 +00:00
|
|
|
contract base { function foo() public; }
|
2018-05-30 16:41:34 +00:00
|
|
|
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.
|