mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
311 B
Solidity
22 lines
311 B
Solidity
|
contract B {
|
||
|
function f() public returns (uint256) {
|
||
|
return 10;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
contract C is B {
|
||
|
function f(uint256 i) public returns (uint256) {
|
||
|
return 2 * i;
|
||
|
}
|
||
|
|
||
|
function g() public returns (uint256) {
|
||
|
return f(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ====
|
||
|
// compileViaYul: also
|
||
|
// ----
|
||
|
// g() -> 2
|