solidity/test/libsolidity/syntaxTests/tryCatch/double_panic.sol
2020-12-22 11:08:44 +01:00

14 lines
347 B
Solidity

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.