solidity/test/libsolidity/syntaxTests/using/module_3.sol
2022-03-14 12:33:44 +01:00

15 lines
240 B
Solidity

==== Source: A ====
function id(uint x) pure returns (uint) {
return x;
}
==== Source: B ====
import "A" as M;
contract C {
using {M.id} for uint;
function f(uint x) public pure returns (uint) {
return x.id();
}
}