solidity/test/libsolidity/syntaxTests/tryCatch/invalid_catch_parameter_location_calldata.sol

8 lines
221 B
Solidity

contract C {
function f() public {
try this.f() {} catch (string calldata a) { }
}
}
// ----
// TypeError 6651: (70-87): Data location must be "memory" for parameter in function, but "calldata" was given.