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

10 lines
367 B
Solidity

contract C {
using {f, g} for uint;
function f(uint) internal { }
function g(uint) public { }
}
// ----
// TypeError 4167: (24-25): Only file-level functions and library functions can be attached to a type in a "using" statement
// TypeError 4167: (27-28): Only file-level functions and library functions can be attached to a type in a "using" statement