solidity/test/libsolidity/semanticTests/freeFunctions/libraries_from_free.sol
2020-08-18 11:46:59 +02:00

21 lines
345 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