mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
204 B
Solidity
14 lines
204 B
Solidity
library L {
|
|
function id(uint x) internal pure returns(uint) {
|
|
return x;
|
|
}
|
|
}
|
|
|
|
contract C {
|
|
using {L.id} for uint;
|
|
function f(uint x) external pure {
|
|
x.id();
|
|
}
|
|
}
|
|
// ----
|