mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
276 B
Solidity
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();
|
|
}
|
|
}
|