solidity/test/libsolidity/syntaxTests/using/using_free_no_parameters_err.sol

8 lines
213 B
Solidity
Raw Normal View History

2021-10-11 08:16:52 +00:00
function one() pure returns(uint) {
return 1;
}
using {one} for uint;
// ----
// TypeError 4731: (60-63): The function "one" does not have any parameters, and therefore cannot be bound to the type "uint256".