Hello everyone.
I have a suspicion that in one of the new versions of Lazarus or FPC, a bug was fixed or the restriction was removed that the name of the component should not match the name of the unit.
For example file.
MyControl.pas
unit MyControl;
type
TMyControl = class(TCustomControl)
end;
RegisterComponents('My Controls', [TMyControl]);
end;
In Lazarus 2.X it gave a compilation error.
I don't remember the error text.
I had to rename the file to MyControls.pas
In Lazarus 3.2, the MyControl.pas file with the TMyControl component does not generate compilation errors.
Is this a new feature or bug in Lazarus?
Can I now rely on the fact that I can name the file with the TMyControl component - MyControl.pas?
Is there a description of this new FPC feature?