I'm having an error compiling my webcore project when I use the generics.collection class, specifically in the ExtractPair method, line " Result.Create(Key,Default(TValue));"
Error: [Error] generics.collections.pas(1356): record expected, but class of TObject found
function TDictionary<TKey, TValue>.ExtractPair(const Key: TKey): TMyPair;
var
K : TKey;
begin
Result:=Default(TMyPair);
K:=GetEffectiveKey(Key);
if FMap.Has(K) then
begin
Result.Create(Key,TValue(FMap.get(K)));
FMap.Delete(k);
end
else
Result.Create(Key,Default(TValue));
end;