Show: Object Pascal C++
Display Preferences

E2549 Cannot declare parameterized type derived from custom attribute class (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

This error occurs when using a parameterized type that inherits from TCustomAttribute.

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

See Also

Personal tools
In other languages