mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9dc7f5de4a
- Looks like something overlooked in one of the recently merged PRs.
16 lines
237 B
Solidity
16 lines
237 B
Solidity
contract Base {
|
|
function f(uint n) public returns (uint) {
|
|
return 2 * n;
|
|
}
|
|
}
|
|
|
|
contract Child is Base {
|
|
function g(uint n) public returns (uint) {
|
|
return Base.f(n);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// g(uint256): 4 -> 8
|