HomeDelphiDelphi Error – E2272 Cannot use reserved unit name ‘%s’

Delphi Error – E2272 Cannot use reserved unit name ‘%s’

Delphi Compiler Error

E2272 Cannot use reserved unit name ‘%s’

Reason for the Error & Solution

An attempt has been made to use one of the reserved unit names, such as System, as the name of a user-created unit.

The names in the following list are currently reserved by the compiler.

  • System
  • SysInit

unit System;
interface
implementation
begin
end.


The name of the unit in this example is illegal because it is reserved for use by the compiler.

unit MySystem;
interface
implementation
begin
end.


The only solution to this problem is to use a different name for the unit.

Share:

Leave a Reply

You May Also Like

Delphi Compiler Error X2421 Imported identifier ‘%s’ conflicts with ‘%s’ in ‘%s’ Reason for the Error & Solution This occurs...
Delphi Compiler Error X2367 Case of property accessor method %s.%s should be %s.%s Reason for the Error & Solution No...
Delphi Compiler Error X2269 Overriding virtual method ‘%s.%s’ has lower visibility (%s) than base class ‘%s’ (%s) Reason for the...