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

8 lines
282 B
Solidity

contract C {
using {f} for uint global;
}
function f(uint) pure{}
// ----
// SyntaxError 3367: (17-43='using {f} for uint global;'): "global" can only be used at file level.
// TypeError 8841: (17-43='using {f} for uint global;'): Can only use "global" with user-defined types.