[Issue 14916] opDispatch: no property error for parameter type mismatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 29 13:24:49 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=14916

--- Comment #2 from TeddyBear12311 at gmail.com ---
Same problem.

I wanted to provide key to field emulation and nothing works correctly
consistently. I have override various op's such as opCall and opDispatch and
they all are not called when the property is used. The code has worked in the
past but i changed a few internal things not related to the opDispatch and then
it started failing again. The error is

test.d: Error: no property `y` for type `X`

where X implements opDispatch but which is never called for x.y.

--


More information about the Digitalmars-d-bugs mailing list