[Mono-list] Error with generics sharing

MartinMono software at solmersa.com
Thu Sep 25 15:11:33 EDT 2008


Hi I'm using a System.Collections.Generic.List to add an item.  The List is
not sorted but it fails in the method add telling me to "implement type
compare for 1b!"  The type is a simple Class.

I implemented type compare (IComparable, not the generic).  It keeps
displaying the same message and with --trace reports 
---------------------------
** ERROR **: file generic-sharing.c: line 278
(mini_get_basic_type_from_generic): assertion failed: (gsctx)
aborting...

---------------------------

So this looks like a bug in the generics sharing code.  Because it asks for
an implementation not needed in most cases.
-- 
View this message in context: http://www.nabble.com/Error-with-generics-sharing-tp19676338p19676338.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list