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

24 lines
377 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();
}
}
// ====
// compileViaYul: also
2020-05-04 16:38:00 +00:00
// ----
// library: L
// f() -> 7, 8