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

15 lines
266 B
Solidity

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