Fix bound functions with calldata parameters.

This commit is contained in:
chriseth
2020-06-10 17:37:59 +02:00
parent 2410f0ed5a
commit baabe65a84
10 changed files with 131 additions and 12 deletions
@@ -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.