http://bugzilla.novell.com/show_bug.cgi?id=591225

http://bugzilla.novell.com/show_bug.cgi?id=591225#c2


--- Comment #2 from Rodrigo Kumpera <[email protected]> 2010-04-09 01:50:13 
UTC ---
The issue here is much simpler:

AssemblyName assemblyName = new AssemblyName ("a");
AssemblyBuilder ass = AppDomain.CurrentDomain.DefineDynamicAssembly
(assemblyName, AssemblyBuilderAccess.RunAndSave);
var mb = ass.DefineDynamicModule ("a.dll");

var tb = mb.DefineType ("Base");
tb.DefineGenericParameters ("F");

var inst = tb.MakeGenericType (typeof (int));
var tb2 = mb.DefineType ("Child", TypeAttributes.Public, inst);

tb.CreateType ();
tb2.CreateType ();

When tb2.CreateType() is called, it tried to define a default constructor,
which requires the parent GetConstructor() to work, which is only possible for
finished types.

The issue is that we don't resolve the SRE type into its concrete type.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to