solidity/test/libsolidity/syntaxTests/using/bound_calldata_parameter_accepting_calldata.sol

16 lines
190 B
Solidity
Raw Normal View History

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();
}
}