[nem-en] patch for matching compiler
Marcin Grzeskowiak
fnord at silesianet.pl
Tue Oct 25 22:55:51 CEST 2005
Kamil Skalski <kamil.skalski at gmail.com> napisał(a) :
> There was one bug in my last patch (IsTupleMemeber function), I
> corrected it, but now I get:
>
> ../lib/getopt.n:206:13:206:18: debug: Internal compiler error, please
> report a bug to bugs.nemerle.org. You can try modifying program near
> this location.
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).
I have new patch for rev 5845 with additional changes but somehow I haven't got
your corrected patch till now. I will look at it tomorrow and integrate with my
last changes and then post the new version. This kind of integration problems
reminds me of the mayhem we sometimes have at my workplace ;-)
Marcin
*************************************************
Śląski Pasaż Handlowy - wpadnij na zakupy
http://pasaz.silesianet.pl
*************************************************
More information about the devel-en
mailing list