Ryan Joseph via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am Di., 14. Jan. 2020, 11:26:
> Is this a bug or intended behavior? I would think there should a type > mismatch. > > {$mode delphi} > program test; > > type > TFooA = class > end; > > type > TFooB = class > end; > > type > TList<T: TFooA> = class > procedure Foo; > end; > > procedure TList<T: TFooB>.Foo; > begin > end; > > begin > end. > It's a bug because constraints should not be allowed in definitions, only in declarations. Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal