Below works with 2.6.2 but not with trunk
Is that indented?
the wiki says
Show quoted text 15 lines
"did not in any way correspond to the parameter type" it does through the overloaded operator, doesn't it?
Also "add a typecast" (despite that would mean the overloaded operator isn't called),
the following
procedure Test(a:TObject=TObject(1));gives
project1.lpr(6,36) Error: Illegal expressioneven though 1 can be typecasted into an TObject.
program project1;
operator := (a:integer) b: TObject;
begin
b:= TObject.Create;
end;
procedure Test(a:TObject=1);
begin
end;
begin
Test;
end.