Hi Everyone!

I am using Lazarus 1.5 on a Raspberry Pi B 2 and I just encountered an error I have never seen before while editing.

I am creating a new generic class as in:

type
  generic TMyClass<T> = class(TMyBaseClass)
     public
        constructor Create( AParent : TMyBaseClass = nil);
        destructor  Destroy; override;
  end;

When I hit <ctrl-shift-C> for auto complete, I get the message "Error: OOPS, I lost your class" and the implementation section looks like this:

implementation

{  }

constructor Create( AParent : TMyBaseClass);
begin

end;

destructor Destroy;
begin
  inherited Destroy;
end;

end.

This is a much simplified example. Code completion fills in the declarations from properties correctly, but the generated setters and getters also come out in the { } with no class name either.

Am I doing something wrong? I have been using this since IIRC Delphi 5 and never encountered this error. (Of course generics may have come later than Delphi 5, but I have used code completion in generics well into the past, just can't remember when I started :-( ).

Help making this work will eliminate a lot of typing (and potential errors).

Thanks,

Don Ziesig

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to