///////////////////// test.d ///////////////////// struct S { void opDispatch(string name)() {} void opDispatch(string name)(string value) { } } unittest { S n; n.foo = "".nonexisting(); } ////////////////////////////////////////////////// Compiler output: test.d(10): Error: no property foo for type S Looks like a regression in 2.064, before which the error message correctly mentioned "nonexisting".
@RazvanN7 created dlang/dmd pull request #9378 "Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function" fixing this issue: - Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function https://github.com/dlang/dmd/pull/9378
dlang/dmd pull request #9378 "Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function" was merged into stable: - e12ede8ff8386c429356295dfa23682cadd44dc5 by RazvanN7: Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function https://github.com/dlang/dmd/pull/9378
dlang/dmd pull request #9387 "Merge remote-tracking branch 'upstream/stable' into merge_stable" was merged into master: - e12ede8ff8386c429356295dfa23682cadd44dc5 by RazvanN7: Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function - 42a7874c9eefbae4c8dc3ba922a80f27769333a2 by The Dlang Bot: Merge pull request #9378 from RazvanN7/Issue_19687 Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com> https://github.com/dlang/dmd/pull/9387