2019-12-02 20:39:53 +00:00
|
|
|
contract base { function foo() public virtual; }
|
2018-05-30 16:41:34 +00:00
|
|
|
contract derived {
|
|
|
|
base b;
|
|
|
|
function foo() public { b = new base(); }
|
|
|
|
}
|
|
|
|
// ----
|
2019-12-02 20:39:53 +00:00
|
|
|
// TypeError: (0-48): Contract "base" should be marked as abstract.
|