I am new to solidity and stucked at very strange issue. I am not able to use variable i for any type of operation inside for loop.
for (uint256 i; i < data.numPoints; i++) {
//uint256 xx = data.x; //Working
//uint256 yy = data.y; //Working
//uint256 xx = data.x * i; //Not working
//uint256 yy = data.y * i; //Not working
uint256 xx = i; //Not working
uint256 yy = i; //Not working
points[i] = xx;
}
Contract get compile successfully but throw run time exception on call. Am I missing something??