Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Declaration Match Problem
Fri, Jan 26 2018 6:15 AMPermanent Link

Michael Dreher

The code in the implementation section is this:

implementation

type
 TFoo = class(TForm)
 public
   class function foo() : string;
 end;

class function TFoo.foo() : string;
begin
end;

function foo() : string; // (*)
begin
end;
end.

At (*) I get
 - [Error] Unit1.wbs (27,10): Implementation does not match prior declaration
but not sure why. The name "foo" is'nt declared anywhere in global scope. My guess is there's a name clash
with TFoo.foo, but it should not. Using 2.06B11. The example code is attached.

Michael Dreher



Attachments: ExampleProject.zip
Fri, Jan 26 2018 12:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< The code in the implementation section is this: >>

Thanks, I'll check it out.

Tim Young
Elevate Software
www.elevatesoft.com
Image