solidity/test/libsolidity/syntaxTests/revertStatement/using_function.sol
2021-03-30 21:15:46 +02:00

10 lines
237 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): Expression has to be an error.