[Mono-bugs] [Bug 79056][Nor] New - Unexpected compilation error
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 10 20:02:15 EDT 2006
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 stephen.gennard at microfocus.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79056
--- shadow/79056 2006-08-10 20:02:15.000000000 -0400
+++ shadow/79056.tmp.25810 2006-08-10 20:02:15.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 79056
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details: XP
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: stephen.gennard at microfocus.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Unexpected compilation error
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Type in:
+using System;
+
+namespace MicroFocus.MONO.Bugs
+{
+ public class Odd
+ {
+ private static readonly Type[] _argTypes = { typeof
+(object), typeof(object[]) };
+
+ public static int Main()
+ {
+ Console.WriteLine("PASS");
+ return 0;
+ }
+ }
+}
+
+2. gmcs it
+
+Actual Results:
+
+D:\development\netx50\ilrts\mono\bugs>gmcs odd.cs
+odd.cs(7,41): error CS0266: Cannot implicitly convert type `object[]' to
+`System
+.Type[]'. An explicit conversion exists (are you missing a cast?)
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+No errors
More information about the mono-bugs
mailing list