From: http://forum.dlang.org/post/zxhvyfitqkbvmfseyqxr@forum.dlang.org struct Fail1 { void opDispatch(string s)() { static assert(false, "Tried to call a method on Fail1"); } } struct Fail2 { void opDispatch(string s, T)(T arg) { static assert(false, "Tried to call a method on Fail2"); } } void main() { auto fail1 = Fail1(); fail1.s(); // "no property" error instead of static asset failure auto fail2 = Fail2(); fail2.s(1); // "no property" error instead of static asset failure }
*** This issue has been marked as a duplicate of issue 8387 ***