solidity/test/libsolidity/syntaxTests/tryCatch/data_location_error_message.sol
2022-04-01 23:41:18 -05:00

12 lines
278 B
Solidity

contract Foo {
function test() public {
try this.f() {}
catch Error(string reason) {}
}
function f() public {
}
}
// ----
// TypeError 6651: (88-101='string reason'): Data location must be "memory" for parameter in function, but none was given.