[Issue 2754] New: The error message regarding implicit conversion to shared doesn't mention shared in the message.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 21 20:10:32 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2754

           Summary: The error message regarding implicit conversion to
                    shared doesn't mention shared in the message.
           Product: D
           Version: 2.022
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: trivial
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: sandford at jhu.edu


Error: cannot implicitly convert expression (new A) of type hello.A to A
v.s. the corresponding immutable error:
Error: cannot implicitly convert expression (new A) of type hello.A to
immutable(A)

Test case:

class A {}
void foo(  shared A y ) {}
void main() {
    foo(new A());
}

P.S. D 2.026 isn't available yet as an option in bugzilla.


-- 



More information about the Digitalmars-d-bugs mailing list