solidity/test/libsolidity/syntaxTests/using/library_import_as.sol

17 lines
276 B
Solidity
Raw Normal View History

2021-10-11 08:16:52 +00:00
==== 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();
}
}