[fpc-devel] Operator overload error when using type restrictions

Sven Barth pascaldragon at googlemail.com
Wed Jul 25 07:41:11 CEST 2018


Am 25.07.2018 um 01:11 schrieb African Wild Dog:
> Hello,
>
> Please confirm if this is a bug or my mistake.
> When i try to overload a assignment operator on a generic class with 
> type restriction i get this error: "Impossible to overload assignment 
> for equal types". However, if i remove the type restriction, the compiles.
With what compiler version did you test? Cause with trunk your example 
works here...

Regards,
Sven



More information about the fpc-devel mailing list