solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/426_throw_is_deprecated.sol
2018-07-16 15:33:20 +02:00

8 lines
175 B
Solidity

contract C {
function f() pure public {
throw;
}
}
// ----
// SyntaxError: (52-57): "throw" is deprecated in favour of "revert()", "require()" and "assert()".