- attached AccessViolation.MoveNextWhere.pas
Delphi12 - AV in TIteratorBlock.MoveNextWhere
Issue #406
wontfix
type
TKey = Tuple<string, string>;
var dictAV := TCollections.CreateDictionary<TKey, string>;
dictAV.Add(TKey.Create('1', 'First'), 'Value');
dictAV.Add(TKey.Create('2', 'Second'), '');
var dictWhereAV := dictAV.Where(
function(const item: TPair<TKey, string>): Boolean
begin
var key := item.Key.Value2; // AccessViolation
Result := key.Equals('Second');
end).ToArray;
Comments (4)
-
reporter -
repo owner - changed status to wontfix
Thanks for your report - however this is not a defect of Spring but in the compiler in Delphi 12 - please track the issue I reported on quality portal
-
reporter Thank you for efficiency!
-
repo owner Issue
#408was marked as a duplicate of this issue. - Log in to comment