solidity/test/libsolidity/semanticTests/freeFunctions/overloads.sol

18 lines
283 B
Solidity
Raw Normal View History

2020-05-04 16:38:00 +00:00
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
// compileViaYul: also
2020-05-04 16:38:00 +00:00
// ----
// g() -> 2, 3