1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
contract Base { function f(uint n) public returns (uint) { return 2 * n; } } contract Child is Base { function g(uint n) public returns (uint) { return f(n); } } // ==== // compileToEwasm: also // compileViaYul: also // ---- // g(uint256): 4 -> 8