2019-09-16 12:33:43 +00:00
contract A {
int public testvar ;
function foo ( ) internal returns ( uint256 ) ;
}
contract B {
function foo ( ) internal returns ( uint256 ) ;
function test ( ) internal returns ( uint256 ) ;
}
contract X is A , B {
int public override testvar ;
function test ( ) internal override returns ( uint256 ) ;
}
// ----
2019-10-23 20:10:12 +00:00
// TypeError: (0-79): Contract "A" should be marked as abstract.
// TypeError: (80-183): Contract "B" should be marked as abstract.
2019-09-16 12:33:43 +00:00
// TypeError: (184-290): Derived contract must override function "foo". Function with the same name and parameter types defined in two or more base classes.
2019-10-23 20:10:12 +00:00
// TypeError: (184-290): Contract "X" should be marked as abstract.