2020-03-06 09:44:51 +00:00
|
|
|
abstract contract I
|
|
|
|
{
|
|
|
|
function a() internal view virtual returns(uint256);
|
|
|
|
}
|
2021-06-01 15:16:09 +00:00
|
|
|
abstract contract J is I
|
|
|
|
{
|
|
|
|
function a() internal view virtual override returns(uint256);
|
|
|
|
}
|
|
|
|
abstract contract V is J
|
2020-03-06 09:44:51 +00:00
|
|
|
{
|
|
|
|
function b() public view returns(uint256) { return a(); }
|
|
|
|
}
|
|
|
|
contract C is V
|
|
|
|
{
|
2021-06-01 15:16:09 +00:00
|
|
|
function a() internal view override returns (uint256) { return 42; }
|
2020-03-06 09:44:51 +00:00
|
|
|
}
|
2020-04-17 20:24:33 +00:00
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-03-06 09:44:51 +00:00
|
|
|
// ----
|
|
|
|
// b() -> 42
|