1 2 3 4 5
contract test { function f(bytes memory) external; } // ---- // TypeError: (31-36): Data location must be "calldata" for parameter in external function, but "memory" was given.