From 50ad52023beea8b6491e41e9940ae2d6ce202716 Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Sun, 10 Dec 2023 01:08:43 +0200 Subject: [PATCH 1/2] fix #2977 --- bin/Lib/PABCSystem.pas | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/Lib/PABCSystem.pas b/bin/Lib/PABCSystem.pas index 1d094b308..d2361d95e 100644 --- a/bin/Lib/PABCSystem.pas +++ b/bin/Lib/PABCSystem.pas @@ -618,8 +618,9 @@ type end; type + //TODO #2982 /// Тип диапазона целых - IntRange = record(ICollection, IReadOnlyCollection, IEquatable) + IntRange = record(ICollection{, IReadOnlyCollection}, IEquatable) private l,h: integer; public @@ -690,8 +691,9 @@ type end; + //TODO #2982 /// Тип диапазона символов - CharRange = record(ICollection, IReadOnlyCollection, IEquatable) + CharRange = record(ICollection{, IReadOnlyCollection}, IEquatable) private l,h: char; public @@ -5188,17 +5190,17 @@ function HSet(a: sequence of T): HashSet := new HashSet(a); function SSet(a: sequence of T): SortedSet := new SortedSet(a); -function HSetInt(params a: array of integer): HashSet := a.ToHashSet; +function HSetInt(params a: array of integer): HashSet := new HashSet(a); -function HSetStr(params a: array of string): HashSet := a.ToHashSet; +function HSetStr(params a: array of string): HashSet := new HashSet(a); function SSetInt(params a: array of integer): SortedSet := new SortedSet(a); function SSetStr(params a: array of string): SortedSet := new SortedSet(a); -function HSet(a: IntRange): HashSet := a.ToHashSet; +function HSet(a: IntRange): HashSet := new HashSet(a); -function HSet(a: CharRange): HashSet := a.ToHashSet; +function HSet(a: CharRange): HashSet := new HashSet(a); function Dict(params pairs: array of KeyValuePair): Dictionary; From a73dc92478951f4c9e491a507988f29360c393b3 Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Sun, 10 Dec 2023 01:11:41 +0200 Subject: [PATCH 2/2] reference right issue --- bin/Lib/PABCSystem.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/Lib/PABCSystem.pas b/bin/Lib/PABCSystem.pas index d2361d95e..071de6b66 100644 --- a/bin/Lib/PABCSystem.pas +++ b/bin/Lib/PABCSystem.pas @@ -618,7 +618,7 @@ type end; type - //TODO #2982 + //TODO #2983 /// Тип диапазона целых IntRange = record(ICollection{, IReadOnlyCollection}, IEquatable) private @@ -691,7 +691,7 @@ type end; - //TODO #2982 + //TODO #2983 /// Тип диапазона символов CharRange = record(ICollection{, IReadOnlyCollection}, IEquatable) private