[Mono-bugs] [Bug 80867][Nor] New - Error when compiling partial class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 15 16:25:29 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 lluis at ximian.com.

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

--- shadow/80867	2007-02-15 16:25:29.000000000 -0500
+++ shadow/80867.tmp.10674	2007-02-15 16:25:29.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 80867
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: lluis at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error when compiling partial class
+
+I get a compilation order when trying to compile the following partial
+class split in two files
+
+============== test1.cs ============
+
+using System.Collections;
+
+namespace MonoDevelop.VersionControl.Dialogs
+{
+	public partial class Test
+	{
+		public ArrayList selected = new ArrayList ();
+	}
+}
+
+============== test2.cs ============
+
+namespace MonoDevelop.VersionControl.Dialogs
+{
+    public partial class Test
+    {
+    }
+}
+
+==========================================
+
+If I run "gmcs test1.cs test2.cs /t:library" it compiles fine.
+
+If I run "gmcs test2.cs test1.cs /t:library" I get this error:
+
+test1.cs(8,35): error CS0246: The type or namespace name `ArrayList' could
+not be found. Are you missing a using directive or an assembly reference?


More information about the mono-bugs mailing list