Currently when a function call has mismatched argument types from the function definition, an error message like this will get printed when compiling with dmd: Error: function myfunction(...) is not callable using argument types (...) When a function has more than a couple arguments (like most Windows functions), it can take a bit of effort to figure out which argument is incorrect. Adding extra information like this: "Cannot convert argument 3 'message' from int to string" or "you've called myfunction with 10 arguments but it only has 9", would help developers save time trying to figure out what actually went wrong.
*** This issue has been marked as a duplicate of issue 15613 ***
Reopening for when argument count doesn't match parameters: https://github.com/dlang/dmd/pull/7584
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b14d8f83d8194867f24aa823aa3a1ff9891f015a Fix Issue 16165 - Show count of arguments vs parameters on mismatch https://github.com/dlang/dmd/commit/f35640a7a5aa264c7f7588c4e3ac3b24fd8d225a Merge pull request #7584 from ntrel/count-args Fix Issue 16165 - Show expected number of function arguments on mismatch
dlang/dmd pull request #12339 "[dmd-cxx] Backport fixes and trivial features from upstream dmd" was merged into dmd-cxx: - a90f4ffcbb0df03f4421617cdf9bf3435d143539 by Nick Treleaven: [dmd-cxx] Fix Issue 16165 - Show expected number of function arguments on mismatch https://github.com/dlang/dmd/pull/12339