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

13 lines
250 B
Solidity

contract C {
function f() public returns (uint, uint) {
try this.f() {
} catch Error(uint) {
}
}
}
// ====
// EVMVersion: >=byzantium
// ----
// TypeError: (94-123): Expected `catch Error(string memory ...) { ... }`.