Generic method + RTTI TypeInfo {$M+} causes a linking error Undefined symbol

FPC [main]

program app;
{$ifdef FPC}{$mode delphi}{$endif}
 
type
  {$M+}
  TC = class
  published
    procedure test<T>;
  end;
  {$M-}
 
procedure TC.test<T>;
begin
  WriteLn('kek!');
end;
 
begin
end.

Output:
Error: Undefined symbol: P$APP$_$TC_$__$$_TEST$1 (first seen in app.o)

D12.1CE - OK