solidity/test/libsolidity/syntaxTests/revertStatement/using_function.sol
2022-04-01 23:41:18 -05:00

10 lines
241 B
Solidity

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='f'): Expression has to be an error.