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

14 lines
347 B
Solidity
Raw Normal View History

2020-10-20 13:30:46 +00:00
contract C {
function f() public {
try this.f() {
} catch Panic(bytes memory) {
} catch Panic(uint) {
}
}
}
// ====
// EVMVersion: >=byzantium
// ----
// TypeError 1271: (72-109): Expected `catch Panic(uint ...) { ... }`.
// TypeError 6732: (110-139): This try statement already has a "Panic" catch clause.