[Mono-bugs] [Bug 59280][Nor] New - implicit conversion from <type a> to <type a> flagged by mcs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 28 May 2004 18:44:08 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jmkimme@sandia.gov.


--- shadow/59280	2004-05-28 18:44:08.000000000 -0400
+++ shadow/59280.tmp.22480	2004-05-28 18:44:08.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 59280
+Product: Mono: Compilers
+Version: unspecified
+OS Details: RH 9.?
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jmkimme@sandia.gov               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: implicit conversion from <type a> to <type a> flagged by mcs
+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>
+<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.
+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!