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

12 lines
421 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 Error2() {
} catch abc() {
}
}
}
// ----
2020-10-20 13:30:46 +00:00
// TypeError 3542: (93-119): Invalid catch clause name. Expected either `catch (...)`, `catch Error(...)`, or `catch Panic(...)`.
// TypeError 3542: (120-143): Invalid catch clause name. Expected either `catch (...)`, `catch Error(...)`, or `catch Panic(...)`.