September 28, 2021 [Issue 22344] New: importC: Semantic allows function to have number of arguments not match prototype | ||||
---|---|---|---|---|
| ||||
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; } -- |
Copyright © 1999-2021 by the D Language Foundation