solidity/test/libsolidity/semanticTests/freeFunctions/overloads.sol
2022-05-19 20:23:28 +02:00

17 lines
260 B
Solidity

function f(uint) returns (uint) {
return 2;
}
function f(string memory) returns (uint) {
return 3;
}
contract C {
function g() public returns (uint, uint) {
return (f(2), f("abc"));
}
}
// ====
// compileToEwasm: also
// ----
// g() -> 2, 3