Get compilation errors within opDispatch?

cc cc at nevernet.com
Mon Feb 17 16:41:54 UTC 2020


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`



More information about the Digitalmars-d-learn mailing list