solidity/test/libsolidity/semanticTests/freeFunctions/libraries_from_free.sol
2022-05-19 20:23:28 +02:00

22 lines
346 B
Solidity

library L {
function pub() public pure returns (uint) {
return 7;
}
function inter() internal pure returns (uint) {
return 8;
}
}
function fu() pure returns (uint, uint) {
return (L.pub(), L.inter());
}
contract C {
function f() public pure returns (uint, uint) {
return fu();
}
}
// ----
// library: L
// f() -> 7, 8