[Mono-bugs] [Bug 684600] error CS1503: Argument `#2' cannot convert `<fake$type>' expression

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 1 16:51:36 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=684600

https://bugzilla.novell.com/show_bug.cgi?id=684600#c2


--- Comment #2 from scott fluto <srfcanada at hotmail.com> 2011-04-01 20:51:36 UTC ---
I finally get a reproducable test. I had to move the test classes to its own
assembly from some reason to get this to happen. So, using the attached files,
test1.cs,test1base.cs and the new Main.cs executing the following commands will
generate the error which should work as it passes in windows. Now my above
comments reference the problem code.

gmcs /out:testingproject.dll /target:library test1.cs test1base.cs
gmcs /reference:testingproject.dll Main.cs  

Note that changing line 1185 in the mcs/mcs/import.cs 
from:
if ((ma & MethodAttributes.Virtual) != 0 && !declaringType.IsSealed) {
to:
if ((ma & MethodAttributes.Virtual) != 0) {

seems to fix the problem. the check for IsSealed on the declaringtype doesnt
seem to make sense in this context anyhow but I could be wrong.

thanks

scott

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list