Error Gereric.Collection

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;

Do you have a more complete code sample, i.e. something we can first of all compile + reproduce here and secondly, if the problem persists, report this to the pas2js/rtl team.