solidity/test/libsolidity/smtCheckerTests/control_flow/try_catch_1.sol

12 lines
355 B
Solidity
Raw Normal View History

contract C {
function g() public returns (uint) {
try this.g() returns (uint x) { x; }
catch Error(string memory s) { s; }
}
}
// ====
// EVMVersion: >=byzantium
2021-03-31 15:11:54 +00:00
// SMTEngine: all
// ----
2021-03-31 15:11:54 +00:00
// Warning 6321: (43-47): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.