I'm trying to understand value type and reference type concept in Solidity as per new changes. I'm trying understand local reference types with following example.
pragma solidity ^0.5.0;
contract Locations {
function doSomething() public {
uint[] storage localArray;
}
}
It gives me an error of array initialization. However after doing something like uint[] storage localArray = new uint[];
(which might also wrong) I found strange error
Type function (uint256) pure returns (uint256[] memory) is not implicitly convertible to expected type uint256[] storage pointer
Any thought?