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

14 lines
204 B
Solidity
Raw Normal View History

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