[fpc-pascal] FPC2.6 failed to raise compiler error "Argument can't be assigned to' for Generic class' Record property in "With" clause

Sven Barth pascaldragon at googlemail.com
Sat Dec 14 01:44:51 CET 2013


Am 13.12.2013 11:07 schrieb "Dennis Poon" <dennis at avidsoft.com.hk>:
>
> I think I found a bug in FPC 2.6.2.
> In a method of a derived specialized class, the compiler does not raise
error (which it should)
> With "record property" do
>    "record property's field" := NewValue   //it should raise error since
it is a record property and should not be allowed to modify just one  field.
>
> Please see below sample code for reproducing the error:

1. Not related to generics
2. Does not generate an error in trunk either

So, please report a bug.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131214/b9449b62/attachment.html>


More information about the fpc-pascal mailing list