Compile Project, Target: project1.exe: Exit code 1, Errors: 2unit1.pas(31,39) Error: Record or object type expectedunit1.pas(31,59) Error: Record or object type expected
Compile Project, Target: project1.exe: Exit code 1, Errors: 4unit1.pas(31,39) Error: Record or object type expectedunit1.pas(31,40) Error: Unknown record field identifier "Color"unit1.pas(31,58) Error: Record or object type expectedunit1.pas(31,59) Error: Unknown record field identifier "Color"
I would not like to use getters/setters.
Yep, https://wiki.lazarus.freepascal.org/User_Changes_Trunk#Property_field_access_lists_no_longer_allows_classesThanks
But that is for trunk; if you're using a normal 2.0.12 release you've got FPC 3.2.0, which shouldn't have that change ... at least it isn't mentioned in User Changes 3.2.0
Do you really need a “wrapper”? Doesn’t inheritanceCode: Pascal [Select][+][-]TShapeWrapper = class(TShape) … end;do the same job?
Quote from: woodhead on July 16, 2021, 03:27:24 pmYep, https://wiki.lazarus.freepascal.org/User_Changes_Trunk#Property_field_access_lists_no_longer_allows_classesThanksBut that is for trunk; if you're using a normal 2.0.12 release you've got FPC 3.2.0, which shouldn't have that change ... at least it isn't mentioned in User Changes 3.2.0
Seems like it was missed to move that entry to User Changes 3.2.0, I've done so now.