<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<a class="moz-txt-link-freetext"
href="https://gitlab.com/freepascal.org/fpc/source/-/issues/39459"
moz-do-not-send="true">https://gitlab.com/freepascal.org/fpc/source/-/issues/39459</a><br>
You wrote<br>
>> No, this can not and this will never work. When a generic
parameter has a constraint that constraint <em>must</em> be adhered
to and a forward declaration is <em>not</em> a valid type for such
a constraint (except for <strong>class</strong> / <code>TObject</code>
constraints).<br>
<br>
Using TObject for just any class is nice here.<br>
<br>
What to use for interface?<br>
<a class="moz-txt-link-freetext"
href="https://gitlab.com/freepascal.org/fpc/source/-/issues/39459#note_758496897"
moz-do-not-send="true">https://gitlab.com/freepascal.org/fpc/source/-/issues/39459#note_758496897</a><br>
<br>
Sorry replied on the wrong issue.<br>
<br>
<br>
How can I restrain a generic param, so it must be an interface, but
leave open the exact type, so I can later use a forward declaration?<br>
<br>
</body>
</html>