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 [EMAIL PROTECTED]

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: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+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).
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to