Delphi Error – W1074 Unknown Custom Attribute

Delphi Compiler Error

W1074 Unknown Custom Attribute

Reason for the Error & Solution

This message indicates that the class used for this attribute was not found.

Note: When this warning is set to False, the Unsupported language warning is generated.

Example

type
  [ThisIsAFakeAttribute('Hello', 10)] // This generates 'the "Warning: W1074 Unknown custom attribute"
  TTestClass = class
  end;
 
{$WARN UNKNOWN_CUSTOM_ATTRIBUTE OFF}  // Here we disable the generation of W1074
 
  [ThisIsAFakeAttribute('Hello', 10)] // Now, this generates the "Warning: W1025 Unsupported language feature: 'custom attribute'"
  TTestClass2 = class
  end;

See Also

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...