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

15 lines
266 B
Solidity

contract C {
error E();
function f() public returns (uint, uint) {
try this.f() {
} catch E(uint a) {
}
}
}
// ====
// EVMVersion: >=byzantium
// ----
// TypeError 4873: (109-137): Expected 0 parameters for error "E" but got 1.