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

18 lines
353 B
Solidity

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