mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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(...)`.
|
||||
Reference in New Issue
Block a user