mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
190 B
Solidity
16 lines
190 B
Solidity
|
struct S {
|
||
|
uint x;
|
||
|
}
|
||
|
|
||
|
library L {
|
||
|
function f(S calldata) internal pure {}
|
||
|
}
|
||
|
|
||
|
contract C {
|
||
|
using L for S;
|
||
|
|
||
|
function run(S calldata _s) external pure {
|
||
|
_s.f();
|
||
|
}
|
||
|
}
|