solidity/test/libsolidity/smtCheckerTests/control_flow/try_catch_1.sol
2020-06-02 16:51:53 +02:00

13 lines
361 B
Solidity

pragma experimental SMTChecker;
contract C {
function g() public returns (uint) {
try this.g() returns (uint x) { x; }
catch Error(string memory s) { s; }
}
}
// ====
// EVMVersion: >=byzantium
// ----
// Warning: (98-121): Assertion checker does not support try/catch clauses.
// Warning: (124-159): Assertion checker does not support try/catch clauses.