solidity/test/libsolidity/semanticTests/functionCall/inheritance/call_unimplemented_base.sol
2023-05-11 10:56:55 -05:00

19 lines
381 B
Solidity

abstract contract I
{
function a() internal view virtual returns(uint256);
}
abstract contract J is I
{
function a() internal view virtual override returns(uint256);
}
abstract contract V is J
{
function b() public view returns(uint256) { return a(); }
}
contract C is V
{
function a() internal view override returns (uint256) { return 42; }
}
// ----
// b() -> 42