Bug 10760 – compiler drops opDispatch if it contains an error(s)
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-05T02:24:00Z
Last change time
2013-11-16T21:06:40Z
Assigned to
nobody
Creator
temtaime
Comments
Comment #0 by temtaime — 2013-08-05T02:24:01Z
struct S {
int opDispatch(string s)() @property {
//notexistssymbol(); // when uncomment that dmd says: Error: no property 'foo' for type 'S'
return 0;
}
}
void main() {
S s;
auto t = s.foo;
}
Comment #1 by turkeyman — 2013-09-29T21:19:19Z
This had me scratching my head for a few hours today.
Please fix.
Comment #2 by yebblies — 2013-11-16T21:06:40Z
*** This issue has been marked as a duplicate of issue 8387 ***