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

8 lines
216 B
Solidity

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 attached to the type "uint256".