solidity/test/libsolidity/syntaxTests/tryCatch/structured_pre_byzantium.sol
2020-01-08 16:12:06 +01:00

14 lines
335 B
Solidity

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