solidity/test/libsolidity/syntaxTests/controlFlow/mappingReturn/unnamed_err.sol

6 lines
298 B
Solidity
Raw Normal View History

contract C {
function f() internal pure returns (mapping(uint=>uint) storage) {}
}
// ----
// TypeError: (53-80): This variable is of storage pointer type and might be returned without assignment and could be used uninitialized. Assign the variable (potentially from itself) to fix this error.