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

20 lines
456 B
Solidity
Raw Normal View History

library L {
function externalFunction(uint) external pure {}
function publicFunction(uint) public pure {}
function internalFunction(uint) internal pure {}
}
contract C {
using {L.externalFunction} for uint;
using {L.publicFunction} for uint;
using {L.internalFunction} for uint;
function f() public pure {
uint x;
x.externalFunction();
x.publicFunction();
x.internalFunction();
}
}
// ----