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

16 lines
343 B
Solidity

contract C {
function f() public returns (uint, uint) {
try this.f() {
} catch Error(string memory x) {
x;
} catch Error(string memory y) {
y;
}
}
}
// ====
// EVMVersion: >=byzantium
// ----
// TypeError 1036: (150-205): This try statement already has an "Error" catch clause.