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

11 lines
246 B
Solidity
Raw Normal View History

2021-10-11 08:16:52 +00:00
function f(uint8 x) pure returns (uint) {
return x;
}
function f(int8 storage x) pure returns (int) {
return x[0];
}
using {f} for uint8;
using {f} for int;
// ----
// DeclarationError 7920: (132-133): Identifier not found or not unique.