Closed micha137 closed 4 years ago
OK. I can only speak for XE3, where the default parameter for the generic type works fine. Maybe some {$IFs} can help out here.
Setting the default value to nil results in this error on XE2 (I think XE3 had this as well, don have xe 3/4/5/6 installed at the moment to test).
[DCC Error] Delphi.Mocks.ObjectProxy.pas(49): E2086 Type 'TFunc
I cherry picked the spelling errors.
I will have to check, but I think there was an issue with a compiler bug on this, can't remember which compiler version but I remember going around in circles with this, get it working in one version, breaks another.