solidity/test/libsolidity/syntaxTests/revertStatement/using_function.sol

10 lines
237 B
Solidity
Raw Normal View History

2021-02-24 09:55:49 +00:00
error f(uint, uint);
contract C {
function f(uint) public {
revert f(10);
}
}
// ----
// Warning 2519: (38-91): This declaration shadows an existing declaration.
// TypeError 1885: (79-80): Expression has to be an error.