[nem-en] patch for matching compiler
Kamil Skalski
kamil.skalski at gmail.com
Tue Oct 25 23:12:09 CEST 2005
05-10-25, Marcin Grzeskowiak <fnord at silesianet.pl> napisał(a):
>
> The code that works for me:
>
> public static IsTupleMember (ty : IMember) : bool
> {
> def dt = ty.DeclaringType;
> def typarms = dt.TyparmsCount;
> typarms > 1 && dt.Equals (InternalType.GetTupleType (typarms).tycon)
> }
>
> Seems that without tycon the Object.Equals () method is called in the last
> line (my guess).
Ooops. This is a perfect example for the bug introduced because of
Equals (o : object), I was calling it between TypeInfo and MType, so
it was just always failing.
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list