solidity/test/libsolidity/syntaxTests/imports/importing_free_functions.sol
2020-08-18 11:46:59 +02:00

15 lines
307 B
Solidity

==== Source: a ====
function f(uint x) pure returns (uint) { return x * 3; }
==== Source: b ====
import "a" as A;
function g(uint x) pure returns (uint) { return A.f(x) * 3; }
==== Source: c ====
import "b" as B;
contract C {
function f() public pure {
B.g(2);
B.A.f(3);
}
}
// ----