www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12788] New: -di doesn't warn about implicit conversion from


          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)

$ dmd -c test.d
test.d(4): Error: function test.f (char* s) does not match parameter types
test.d(4): Error: cannot implicitly convert expression (s) of type char[] to

$dmd -c -di test.d
// compiles without warnings

May 23 2014