fpc/tests/webtbf/tw36584.pp
florian b7afb2431c * do not allow constraints in headers of procedure implementations in delphi mode, resolves #36584
* better error message if a constraint is found at a wrong location

git-svn-id: trunk@44174 -
2020-02-14 20:56:55 +00:00

24 lines
203 B
ObjectPascal

{ %fail }
{$mode delphi}
program test;
type
TFooA = class
end;
type
TFooB = class
end;
type
TList<T: TFooA> = class
procedure Foo;
end;
procedure TList<T: TFooB>.Foo;
begin
end;
begin
end.