Hello again,

Can I use a defined generic type parameter inside a constraint of the same
generic declaration on FPC trunk code? Something like:



{$mode Delphi}


type
  TFoo<T> = class
  end;

  TGeneric<T, U: TFoo<T>> = class
  end;

This compiles in Delphi XE or later but in FPC it gives the error
"Identifier not found 'T'" at the T parameter in the constraint.

Thanks in advance.

--Constantine
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to