Bugzilla – Bug 314898
implicit conversion from <type a> to <type a> flagged by mcs
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by jmkimme@sandia.gov 2004-05-28 18:44:08 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: In the process of creating a library, where x.dll is compiled with -r:y.dll, y.dll has already happily compiled. when i compile x.dll, mcs says: <file from y.dll> error CS0029: Cannot convert implicitly from <class a> to <class a> and <file from y.dll> error CS0030: Cannot convert type <class b> to <class b> for a total of two errors. So, essentially, in an already compiled library, mcs is saying that i cannot convert an object of some type to an object of the identical type. Steps to reproduce the problem: 1. Well, this is complicated because it's corporate code, so i can't just fork it over. i would recommend putting some classes in a library, then compiling another library which uses that library... like: objA[] myArr = new objA[foo] for( a while){ fill myArr; } objA otherArr = new objA[foo] for( i = 0 .. foo-1){ otherArr[i] = foo[4]; } this is essentially what's causing the "cannot convert implicitly" error. 2. 3. Actual Results: Expected Results: How often does this happen? every time i compile these libraries. Additional Information: well, i realize that this is a tricky one to reproduce, but believe me, it exists, and is preventing me from porting my library onto linux. thanks for your time! ---- Additional Comments From miguel@ximian.com 2004-05-30 02:49:58 MST ---- Could you please provide two sample programs that behave like your code and check with your small sample that the problem happens? ---- Additional Comments From jmkimme@sandia.gov 2004-06-01 10:24:58 MST ---- turned out to be a typo in the makefile... Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>RH 9.?</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".