missing_array_index.sol 279 B

12345678910
  1. contract c {
  2. function foo() public returns (uint) {
  3. uint8[4] memory bar = [ 1, 2, 3, 4 ];
  4. return bar[];
  5. }
  6. }
  7. // ---- Expect: diagnostics ----
  8. // error: 6:28-33: expected expression before ']' token