solidity/test/libsolidity/syntaxTests/tryCatch/two_error_catch_clauses.sol
2019-09-23 17:22:56 +02:00

16 lines
338 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: (150-205): This try statement already has an "Error" catch clause.