solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/428_bare_revert.sol

9 lines
181 B
Solidity

contract C {
function f(uint x) pure public {
if (x > 7)
revert;
}
}
// ----
// TypeError: (81-87): No matching declaration found after variable lookup.