This should error, but doesn't.
---
int func(int);
int func() // number of arguments doesn't match prototype.
{
return 0;
}
Comment #1 by ibuclaw — 2021-09-28T22:08:17Z
Related to issue 22342 and 22343.
Comment #2 by dlang-bot — 2022-02-09T09:00:28Z
@WalterBright created dlang/dmd pull request #13627 "fix Issue 22344 - ImportC: overloading of functions is not allowed" fixing this issue:
- fix Issue 22344 - ImportC: overloading of functions is not allowed
https://github.com/dlang/dmd/pull/13627
Comment #3 by dlang-bot — 2022-02-09T11:25:23Z
dlang/dmd pull request #13627 "fix Issue 22344 - ImportC: overloading of functions is not allowed" was merged into master:
- 59b15ea796d513426fbf2789a5b7895b2b486041 by Walter Bright:
fix Issue 22344 - ImportC: overloading of functions is not allowed
https://github.com/dlang/dmd/pull/13627