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

10 lines
369 B
Solidity

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