[Mono-bugs] [Bug 82181][Min] New - partial should be a context sensitive keyword

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 24 23:26:57 EDT 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 jesjones at mindspring.com.


--- shadow/82181	2007-07-24 23:26:57.000000000 -0400
+++ shadow/82181.tmp.30350	2007-07-24 23:26:57.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 82181
+Product: Mono: Compilers
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jesjones at mindspring.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: partial should be a context sensitive keyword
+Description of Problem:
+In order to avoid breaking existing code the partial keyword only acts as a
+keyword when used before class, struct, and interface. However this doesn't
+appear to be the case for gmcs
+Steps to reproduce the problem:
+Try to compile:
+public class Test
+    public static bool Check(string name, string[] names)
+    {
+        foreach (string partial in names)
+        {
+            if (name.Contains(partial))
+                return true;
+        }
+        return false;
+    }
+Actual Results:
+error CS0267: The `partial' modifier can be used only immediately before
+keyword `class', `struct', or `interface'
+Expected Results:
+Should compile cleanly.
+How often does this happen? 
+Additional Information:

More information about the mono-bugs mailing list