https://bugzilla.novell.com/show_bug.cgi?id=351172
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=351172#c6 Zoltan Varga <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] --- Comment #6 from Zoltan Varga <[EMAIL PROTECTED]> 2008-03-09 18:14:43 MST --- So this is still broken with current mono SVN. The problem again seems to be our broken handling of generic instantiations of typebuilders, when somebody calls GetFields () on them, we make a copy of the current fields in the typebuilder, and when fields are added later, these are not visible in the instantiation. A testcase: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< TypeBuilder tb = module.DefineType ("foo"); GenericTypeParameterBuilder [] typeParams = tb.DefineGenericParameters ("T"); Console.WriteLine (tb.MakeGenericType (typeParams).GetFields ()); FieldBuilder fb = tb.DefineField ("First", typeParams [0], FieldAttributes.Public); Type t = tb.MakeGenericType (typeParams); Type created = tb.CreateType (); Console.WriteLine (TypeBuilder.GetField (t, fb)); >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -- Configure bugmail: https://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
