Array with Nullable Elements in Delphi (uRONullable)

Hi,

I’ve created Array with NullableInteger as Element Type
My generated _Intf.pas has code (RO ver 10.0.0.1613):
function NullableIntegerArray.IndexOf(const aValue: NullableInteger; const aStartFrom: Integer = 0): Integer;
var
lResult: Integer;
begin
for lResult := aStartFrom to fCount - 1 do
if fItems[lResult] = aValue then begin
Exit(lResult);
end;
Exit(-1);
end;
Compiling error for fItems[lResult] = aValue:
[dcc32 Error] E2015 Operator not applicable to this operand type

Is it possible add to Nullable Records in uRONullable additional operator Equal
class operator Equal(const a, b: NullableInteger): Boolean;

Logged as bugs://D19676.

bugs://D19676 was closed as fixed.

Hi,

as a workaround, you can generate _Intf.pas with with GenericArray = Auto: