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

Reply via email to