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

13 lines
255 B
Solidity
Raw Normal View History

2019-09-03 16:31:17 +00:00
contract C {
function f() public returns (uint, uint) {
try this.f() {
} catch Error(uint) {
}
}
}
// ====
// EVMVersion: >=byzantium
// ----
// TypeError 2943: (94-123): Expected `catch Error(string memory ...) { ... }`.