Bug 314898 (MONO59280) - implicit conversion from <type a> to <type a> flagged by mcs
Summary: implicit conversion from <type a> to <type a> flagged by mcs
Status: RESOLVED INVALID
Alias: MONO59280
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: dogfood
Depends on:
Blocks:
 
Reported: 2004-05-29 01:44 UTC by joe
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:39:53 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".