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

15 lines
537 B
Solidity

contract C {
function f() public returns (uint, uint) {
try this.f() {
} catch Error(string memory x) {
x;
}
}
}
// ====
// EVMVersion: >=byzantium
// ----
// Warning 6321: (46-50='uint'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// Warning 6321: (52-56='uint'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.