Receiving the following error with the last 2 versions (2545 and 2549),
(E152) No accessible constructors for type TEntity
method Backup<TEntity>(Source: TEntity); where TEntity is class;
begin
BackupData := new TEntity; <-- is the error line
InternalBackup(Source, BackupData);
end;
This compiles with 2543 (& previous versions) and executes properly.
I am using Visual Studio Community 2019 (Version 16.7.2).
I did change the code to add , TEntity has constructor. The code then compiled. I also tried without the , TEntity has constructor and used Activator.CreateInstance. That compiled clean as well. I am using the original new TEntity with the with clause.