mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
310 B
Solidity
15 lines
310 B
Solidity
|
library Lib { function m(uint x, uint y) public returns (uint) { return x * y; } }
|
||
|
contract Test {
|
||
|
function f(uint x) public returns (uint) {
|
||
|
Lib;
|
||
|
Lib.m;
|
||
|
return x + 9;
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// compileToEwasm: false
|
||
|
// compileViaYul: also
|
||
|
// ----
|
||
|
// library: Lib
|
||
|
// f(uint256): 33 -> 0x2a
|