www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: sandford 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.


-- 
Mar 21 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2754


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2009-04-01 13:57 -------
Fixed DMD 2.027


-- 
Apr 01 2009