solidity/test/libsolidity/semanticTests/functionCall/inheritance/call_base_explicit.sol
Kamil Śliwak 9dc7f5de4a Enable 4 semantic tests from functionCall.inheritance that now work via Yul
- Looks like something overlooked in one of the recently merged PRs.
2020-10-12 15:10:16 +02:00

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