E2549 カスタム属性クラスから派生したパラメータ化型を宣言できません(Delphi)

提供: RAD Studio
移動先: 案内検索

エラーと警告のメッセージ(Delphi) への移動

このエラーは、TCustomAttribute を継承したパラメータ化型を使用した場合に発生します。

 program GenericAttributes;
 
 {$APPTYPE CONSOLE}
 
 type
   AttrAttribute<T> = class(TCustomAttribute)
   end;
 
   [Attr<Byte>]
   TNew = type Integer;
 
 begin
 end.