Comment #0 by ilyayaroshenko — 2019-05-08T02:44:29Z
value.[args] should evaluates to value.opIndex(args) according to the spec.
opSlice is very old behavior.
Currently, the compiler tries first to evaluate to opIndex, and if it fails, to opSlice. The problem is complitely useless error messages.
Comment #1 by robert.schadek — 2024-12-13T19:03:15Z