Delphi compiler warning: Unit ‘x’ implicitly imported into package ‘y’
The Delphi compiler warning "Unit ‘x’ implicitly imported into package ‘y’" means that a unit not explicitly listed in the contains clause of the package is being implicitly pulled into the package because it’s imported by some other unit that’s listed at the package’s contains clause.
This warning is aiding the program in avoiding to violate the rule that a unit may not reside in more than one related package. Ignoring it will cause the unit to be put into the package which may cause errors when you try to use the related packages in some application project.
One can explicitly list the named unit in the contains clause of the package to avoid the warning (can right click a package file in Delphi and select to view its source or edit it visually via the package editor), or can have the package explicitly use some other package where the unit is being explicitly included.
Logging this here for reference since the respective help text of Delphi (reading it from a printout) was written in a bit cryptic way last time I had checked (long time ago that is :-).