solidity/test/libsolidity/syntaxTests/tryCatch/invalid_error_name.sol
2019-09-23 17:22:56 +02:00

12 lines
369 B
Solidity

contract C {
function f() public returns (uint, uint) {
try this.f() {
} catch Error2() {
} catch abc() {
}
}
}
// ----
// TypeError: (93-119): Invalid catch clause name. Expected either `catch (...)` or `catch Error(...)`.
// TypeError: (120-143): Invalid catch clause name. Expected either `catch (...)` or `catch Error(...)`.