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

16 lines
338 B
Solidity
Raw Normal View History

2019-09-03 16:31:17 +00:00
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.