casteng / i-pascal

A free Object Pascal language plugin for IntelliJ IDEA
111 stars 34 forks source link

some generics marked as error #27

Closed Sorien closed 5 years ago

Sorien commented 6 years ago
unit Unit1;

interface

uses
  Generics.Collections, Generics.Defaults;

type
  Foo<T> = class
  public
    constructor Create; overload; //missing implementation
    constructor Create(const AComparer: IComparer<T>); overload; //missing implementation
    constructor Create(Collection: TEnumerable<T>); overload; //missing implementation
  end;

implementation

{ Foo<T> }

constructor Foo<T>.Create; // missing method declaration
begin

end;

constructor Foo<T>.Create(Collection: TEnumerable<T>); // missing method declaration
begin

end;

constructor Foo<T>.Create(const AComparer: IComparer<T>); // missing method declaration
begin

end;

end.
casteng commented 5 years ago

Fixed some time ago