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

19 lines
315 B
Solidity

library Lib {
function x() public view returns (uint) {
return 1;
}
}
contract Test {
uint t;
function f() public returns (uint) {
t = 2;
return this.g();
}
function g() public view returns (uint) {
return Lib.x();
}
}
// ----
// library: Lib
// f() -> 1