solidity/test/libsolidity/syntaxTests/bound/bound_calldata.sol
2022-04-01 23:41:18 -05:00

10 lines
279 B
Solidity

library D { function f(bytes calldata) internal pure {} }
contract C {
using D for bytes;
function f(bytes memory _x) public pure {
_x.f();
}
}
// ----
// TypeError 9582: (136-140='_x.f'): Member "f" not found or not visible after argument-dependent lookup in bytes memory.