digitalmars.D.bugs - [Issue 22344] New: importC: Semantic allows function to have number
- d-bugmail puremagic.com (22/22) Sep 28 2021 https://issues.dlang.org/show_bug.cgi?id=22344
https://issues.dlang.org/show_bug.cgi?id=22344 Issue ID: 22344 Summary: importC: Semantic allows function to have number of arguments not match prototype Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: ibuclaw gdcproject.org This should error, but doesn't. --- int func(int); int func() // number of arguments doesn't match prototype. { return 0; } --
Sep 28 2021