solidity/test/libsolidity/semanticTests/freeFunctions/libraries_from_free.sol

21 lines
345 B
Solidity
Raw Normal View History

2020-05-04 16:38:00 +00:00
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