[Mono-bugs] [Bug 73824][Nor] New - Problem with inherited field of a class that has field whose type is generic.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 17 Mar 2005 20:52:34 -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 spigaz@gmail.com.

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

--- shadow/73824	2005-03-17 20:52:34.000000000 -0500
+++ shadow/73824.tmp.3477	2005-03-17 20:52:34.000000000 -0500
@@ -0,0 +1,81 @@
+Bug#: 73824
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: martin@ximian.com                            
+ReportedBy: spigaz@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problem with inherited field of a class that has field whose type is generic.
+
+Description of Problem:
+When using the inherited field of a class that has field whose type is
+generic, the following error is obtained:
+
+Got Error :
+** ERROR **: type 0x15 not handled in marshal
+aborting...
+
+
+
+Steps to reproduce the problem:
+1. Insert the following into a file:
+namespace FLMID.Bugs.Marshal15
+{
+	public class A<T>
+
+	{
+
+	}
+	public abstract class B
+	{
+		protected A<bool> _aux;
+	}
+	public class X : B
+	{
+	}
+	public abstract class C
+	{
+		protected B _layout;
+	}
+}
+
+2. Compile it into an dll
+
+3. Insert the following to another file:
+namespace FLMID.Bugs.Marshal15
+{
+	public class D : C
+	{
+		public D()
+		{
+			_layout = new X();
+		}
+		public static void Main(string[] args)
+		{
+			System.Console.WriteLine("OK");
+		}
+	}
+}
+
+4. Compile it into an executable using the other assembly as a reference.
+
+Actual Results:
+It does compile, giving the error:
+
+** ERROR **: type 0x15 not handled in marshal
+aborting...
+
+Expected Results:
+It should compile, and when run echos OK.
+
+How often does this happen? 
+Always.