https://issues.dlang.org/show_bug.cgi?id=19852
Issue ID: 19852
Summary: value.[args] evaluation to opSlice.[args] should be
removed
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
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.
--