solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/204_overwrite_memory_location_external.sol

6 lines
185 B
Solidity

contract C {
function f(uint[] memory a) external {}
}
// ----
// TypeError: (28-43): Location has to be calldata for external functions (remove the "memory" or "storage" keyword).