--- Comment #1 from Kenji Hara <> 2011-10-23 05:09:22 PDT ---
I think this is right behavior.
In D2, the implicit conversion from class type to void* is disabled. So

    auto p = cast(void*) c;

the expression c is transformed to c.s, and cause an error.


void main()
    Object o;
    void* p = o;
    // test.d(4): Error: cannot implicitly convert expression (o) of type
object.Object to void*

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to