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

12 lines
219 B
Solidity
Raw Normal View History

2020-10-20 13:30:46 +00:00
contract C {
function f() public {
try this.f() {
} catch Panic() {
}
}
}
// ====
// EVMVersion: >=byzantium
// ----
// TypeError 1271: (72-97): Expected `catch Panic(uint ...) { ... }`.