aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/array_without_index.sol
blob: 6b1c2778101801bdfeecc98098b3c9fbe0ded37a (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
  function f() public {
    bytes memory a;
    a[];
  }
}
// ----
// TypeError: (61-64): Index expression cannot be omitted.