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

16 lines
354 B
Solidity

==== Source: a.sol ====
function f(uint) pure returns (uint) { return 7; }
function f(bytes memory x) pure returns (uint) { return x.length; }
==== Source: b.sol ====
import "a.sol" as M;
contract C {
function f() public pure returns (uint, uint) {
return (M.f(2), M.f("abc"));
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 7, 3