solidity/test/libsolidity/syntaxTests/bound/bound_call.sol
2018-11-22 14:41:39 +01:00

8 lines
174 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();
}
}