[fpc-devel] Incompatible Types: got "untyped" expected "<procedure variable type of procedure(Pointer);Register>
Sean McIlwain
sean at scootersoftware.com
Wed Jul 16 22:05:44 CEST 2008
I'm getting a Error: Incompatible Types: got "untyped" expected
"<procedure variable type of procedure(Pointer);Register> when compiling
the following code. This happens when using default parameter values.
Here is an example:
var Callback: procedure(Data: Pointer);
procedure Proc(AData: Pointer = nil);
begin
end;
initialization
Callback := Proc;
If the = nil is removed, then the code compiles.
Thanks,
Sean
More information about the fpc-devel
mailing list