[Mono-bugs] [Bug 74309][Min] New - 'partial' on interface crashes mcs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 1 Apr 2005 08:05:24 -0500 (EST)

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 nazgul@omega.pl.


--- shadow/74309	2005-04-01 08:05:24.000000000 -0500
+++ shadow/74309.tmp.7131	2005-04-01 08:05:24.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 74309
+Product: Mono: Compilers
+Version: 1.0
+OS Details: mono 1.1.6
+Status: NEW   
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: nazgul@omega.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: 'partial' on interface crashes mcs
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+'pratial' should be allowed on class, struct and interface
+Steps to reproduce the problem:
+1. Try to compile folloding program
+partial interface B {
+  void foo ();
+partial interface B {
+  void faa ();
+public class Test
+	public static void Main ()
+	{
+	}
+Actual Results:
+Unhandled Exception: System.InvalidCastException: Cannot cast from source
+type to destination type.
+in <0x000be> Mono.CSharp.RootContext:ResolveTree ()
+in <0x00ad3> Mono.CSharp.Driver:MainDriver (System.String[] args)
+in <0x0000f> Mono.CSharp.Driver:Main (System.String[] args)
+Expected Results:
+Compilation succeded
+How often does this happen? 
+Additional Information:
+For partial on enums, csc notes error t1.cs(1,1): error CS0267: The partial
+modifier can only appear immediately before 'class', 'struct', or 'interface'
+mcs fails on parse error, but this should probably go to another bugreport