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

13 lines
258 B
Solidity

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