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

9 lines
182 B
Solidity

library D { function double(uint self) internal pure returns (uint) { return 2*self; } }
contract C {
using D for uint;
function f(uint a) public pure {
a.double();
}
}
// ----