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

13 lines
257 B
Solidity

library L {
function f(uint256 v) internal returns (uint256) { return v*v; }
}
contract C {
function g(uint256 v) external returns (uint256) {
return L.f(v);
}
}
// ----
// g(uint256): 1 -> 1
// g(uint256): 2 -> 4
// g(uint256): 4 -> 16