Am 22.03.2013 08:13, schrieb Xiangrong Fang:
2013/3/22 Sven Barth <pascaldra...@googlemail.com
<mailto:pascaldra...@googlemail.com>>
> The problem is gone, because PNode is not a generic class, but only a
record. However, the following errors are generated:
2.6.x does not support nested types in generics. Generic fixes and
improvements are only found in 2.7.1 as most of them were to
invasive to be merged back.
OK, then why this error happened:
demo2.lpr(76,13) Error: Incompatible types: got
"TRoller.TTreap$PPerson$Byte" expected "TRoller"
AFAIR there was also a problem with result types in generics. Could you
please test your code with 2.7.1 to be sure?
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal