https://issues.dlang.org/show_bug.cgi?id=20616
Issue ID: 20616
Summary: Error: undefined identifier __dollar
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: diagnostic
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
```
void f() {
struct X {
auto opSlice(size_t a, size_t b) { return ""; }
}
auto x = X()[0 .. $];
}
```
The error is technically correct, but not exactly helpful. __dollar is an
implementation detail that should not be exposed to the user. I would expect
something more along the lines of "Error: no $ operator overload for type X".
--