Get compilation errors within opDispatch?
Ali Çehreli
acehreli at yahoo.com
Mon Feb 17 16:45:53 UTC 2020
On 2/17/20 8:41 AM, cc wrote:
> Is there any way to see the compilation errors that occurred within an
> opDispatch template?
>
> struct Foo {
> void opDispatch(string s, SA...)(SA sargs) {
> literally anything;
> }
> }
> Foo foo;
> foo.hello(5);
>
> Result: Error: no property `hello` for type `Foo`
>
> Desired result: Error: undefined identifier `literally`
>
Try dmd command line switch -verrors=spec.
Ali
More information about the Digitalmars-d-learn
mailing list