我有一个接受3参数的功能,如下所示
harry3 = procedure ( x: T; y: U; z: V )of object;
harry2 = procedure ( x: T ; y: U )of object;
harry1 = procedure ( x: T )of object;
procedure TTest<T, U, V>.Add(const a: harry1; const b: harry2; const c: harry3);
begin
if (a = nil ) and ( b = nil ) then // error
begin
// dosomething
end
else if (b = nil) and ( c = nil ) then // error
begin
// dosomething
end
else if (c = nil ) and ( a = nil) then // error
begin
// dosomething
end
当我检查a,b,c为零时,它会给我错误&#34; 实际参数不够&#34;