[fpc-pascal] Incompatible type for generics?

Xiangrong Fang xrfang at gmail.com
Tue Sep 24 17:14:05 CEST 2013


2013/9/24 Sven Barth <pascaldragon at googlemail.com>


> How is PNode declared? What is the exact error?
>
>
PNode is declared inside TTreap generic class, the source is here:

https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas

The exact error is:

Error: Incompatible types: got "TStringMapper.TTreap$AnsiString$AnsiString"
expected "TStringMapper"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130924/64227fa4/attachment.html>


More information about the fpc-pascal mailing list