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

14 lines
329 B
Solidity

contract C {
function f() public {
try this.f() {
} catch (bytes memory) {
}
}
}
// ====
// EVMVersion: <byzantium
// ----
// TypeError: (73-106): This catch clause type cannot be used on the selected EVM version (homestead). You need at least a Byzantium-compatible EVM or use `catch { ... }`.