digitalmars.D.bugs - [Issue 12788] New: -di doesn't warn about implicit conversion from
- via Digitalmars-d-bugs (30/30) May 23 2014 https://issues.dlang.org/show_bug.cgi?id=12788
https://issues.dlang.org/show_bug.cgi?id=12788 Issue ID: 12788 Summary: -di doesn't warn about implicit conversion from char[] to char* Product: D Version: D1 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: leandro.lucarella sociomantic.com Test case: --- void f(char* s) {} void g(char[] s) { f(s); } --- $ dmd -c test.d test.d(4): Error: function test.f (char* s) does not match parameter types (char[]) test.d(4): Error: cannot implicitly convert expression (s) of type char[] to char* $dmd -c -di test.d // compiles without warnings --
May 23 2014