You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
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):
OS: Linux
Atom IDE
Version 0.4.5
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: