<p>Am 22.03.2013 02:32 schrieb "Xiangrong Fang" <<a href="mailto:xrfang@gmail.com">xrfang@gmail.com</a>>:<br>
><br>
> Hi,<br>
><br>
> I missed the key point. This bug should be fixed in 2.7.1, but I am now using 2.6.0. Now there is another problem:<br>
><br>
> If I change my code to this:<br>
><br>
><br>
> TTreapEnumerator = class<br>
> FStack: TStack;<br>
> FCurrent: PNode;<br>
> public<br>
> constructor Create(root: PNode);<br>
><br>
> destructor Destroy; override;<br>
> function MoveNext: Boolean;<br>
> property Current: PNode read FCurrent;<br>
> end;<br>
><br>
> The problem is gone, because PNode is not a generic class, but only a record. However, the following errors are generated:</p>
<p>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.</p>
<p>Regards,<br>
Sven</p>