[Mono-bugs] [Bug 79934][Maj] New - namespace problems with partial classes on mono-1.2

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Nov 14 14:58:19 EST 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 jan.oravec at 6com.sk.

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

--- shadow/79934	2006-11-14 14:58:19.000000000 -0500
+++ shadow/79934.tmp.14688	2006-11-14 14:58:19.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 79934
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jan.oravec at 6com.sk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: namespace problems with partial classes on mono-1.2
+
+When trying to compile this:
+
+a.cs:
+
+public static partial class X
+{
+}
+
+
+b.cs:
+using System.Collections.Generic;
+using System.Data;
+
+
+public static partial class X
+{
+  public static IEnumerable<int> Attempts
+  {
+    get
+    {
+      IsolationLevel x = IsolationLevel.Serializable;
+
+      yield break;
+    }
+  }
+}
+
+command:
+gmcs -r:System.Data.dll -target:library -out:a.dll a.cs b.cs
+
+
+I get this error:
+b.cs(11,26): error CS0103: The name `IsolationLevel' does not exist in the
+context of `<>c__CompilerGenerated1'
+Compilation failed: 1 error(s), 0 warnings
+
+When compiling a.cs and b.cs in different order or without a.cs, there is
+no error (as expected).


More information about the mono-bugs mailing list