mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix bound functions with calldata parameters.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
library D { function f(bytes calldata) internal pure {} }
|
||||
contract C {
|
||||
using D for bytes;
|
||||
function f(bytes memory _x) public pure {
|
||||
_x.f();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (136-140): Member "f" not found or not visible after argument-dependent lookup in bytes memory.
|
||||
Reference in New Issue
Block a user