Describe the bug
With indices I tried to access elements of a 2D array declared with public keyword. But on taking the index inputs is shows a type error.
To Reproduce
Steps to reproduce the behavior:
uint[3][3] public fixedSized;
constructor () public {
uint j;
for (uint i=0;i<3;i++){
j = i+1;
fixedSized[i] = [j*1, j*2, j*3];
}
}
Expected behavior
The array should output the element at the particular location according to the indices.
Screenshots
Desktop (please complete the following information):
Describe the bug With indices I tried to access elements of a 2D array declared with
public
keyword. But on taking the index inputs is shows a type error.To Reproduce Steps to reproduce the behavior:
Expected behavior The array should output the element at the particular location according to the indices.
Screenshots![image](https://user-images.githubusercontent.com/13421045/66924276-f11c0380-f047-11e9-8924-06d6cd50dcaa.png)
Desktop (please complete the following information):