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

17 lines
276 B
Solidity

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