Get compilation errors within opDispatch?

Adam D. Ruppe destructionator at gmail.com
Mon Feb 17 17:01:12 UTC 2020


On Monday, 17 February 2020 at 16:41:54 UTC, cc wrote:
> Foo foo;
> foo.hello(5);
>
> Result:  Error: no property `hello` for type `Foo`

It sometimes helps to write it out log-form

foo.opDispatch!"hello"(5);

should give the full error.

this btw is one of the most annoying missing errors in d...


More information about the Digitalmars-d-learn mailing list