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

14 lines
350 B
Solidity
Raw Normal View History

2019-09-03 16:31:17 +00:00
contract C {
function f() public {
try this.f() {
} catch Error(string memory) {
}
}
}
// ====
// EVMVersion: =spuriousDragon
2019-09-03 16:31:17 +00:00
// ----
// TypeError 1812: (73-112): This catch clause type cannot be used on the selected EVM version (spuriousDragon). You need at least a Byzantium-compatible EVM or use `catch { ... }`.