May 27, 2005 Wrong error message | ||||
---|---|---|---|---|
| ||||
Hi, DMD v0.125 on Windows XP: class A { B b; this(B b) { this.b = b; } } class B { A a; this(A a) { this.a = a; } } class C { const A varA = new A(varB); const B varB = new B(varA); } --- testClass.d(22): cannot implicitly convert expression (new B(varA)) of type B to testClass.B Ciao --- http://www.mariottini.net/roberto/ |
Copyright © 1999-2021 by the D Language Foundation