Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity ^0.4.24;
- contract Test {
- constructor(uint size) {
- uint[size] storage arr;
- for (uint i = 0; i < size; i++) { arr[i] = 0 }
- }
- }
- TypeError: Invalid array length, expected integer literal or constant expression.
Add Comment
Please, Sign In to add comment