[Mono-bugs] [Bug 80674][Wis] New - CS0030 - GMCS Cannot convert type `TInput' to `TOutput'

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 30 13:01:24 EST 2007


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 ravontus at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80674

--- shadow/80674	2007-01-30 13:01:24.000000000 -0500
+++ shadow/80674.tmp.14963	2007-01-30 13:01:24.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 80674
+Product: Mono: Compilers
+Version: 1.2
+OS: other
+OS Details: kubuntu v6.10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: RavonTUS at Yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS0030 - GMCS Cannot convert type `TInput' to `TOutput'
+
+Description of Problem:
+I get the following error when I try to compile the scripts.  This script
+compiles OK under Microsoft .NET2  This maybe similar to bug#80260.
+
+./Utility.cs(1098,109): error CS0030: Cannot convert type `TInput' to `TOutput'
+./Utility.cs(1098,109): The type has two conflicting definitions, one comes
+from test, Version=0.0.0.0, Culture=neutral and the other from test,
+Version=0.0.0.0, Culture=neutralerror)
+Compilation failed: 1 error(s), 5 warnings
+
+ public static List CastConvertList(List list) where TOutput : TInput
+{
+return list.ConvertAll(new Converter(delegate(TInput value) { return
+(TOutput)value; }));
+}
+
+Actual Results:
+Enter the following...
+    $ gmcs -define:MONO -debug -nologo -out:./test.exe -unsafe -recurse:*.cs 
+
+Expected Results:
+Compilation: 0 error(s), 5 warnings
+
+How often does this happen? 
+Every Time
+
+Additional Information:
+Mono v1.2.2.1


More information about the mono-bugs mailing list