Unit name indirectly hides type name
Original Reporter info from Mantis: pcode@mail.ru
-
Reporter name: --
Original Reporter info from Mantis: pcode@mail.ru
- Reporter name: --
Description:
When current unit indirectly uses unit named as some type in other unit's hierarchy, that type's name is invisible (with inexplicit type notation) in current unit.
Steps to reproduce:
unit name;
{$mode objfpc}
interface
implementation
end.
unit name2;
{$mode objfpc}
interface
type name = packed object end;
implementation
end.
unit name3;
{$mode objfpc}
interface
uses name;
implementation
end.
program main;
{$mode objfpc}
uses name2, name3;
var t: name; //identifier not found 'name'
begin
end.
Mantis conversion info:
- Mantis ID: 25962
- OS: win32
- Platform: i386
- Version: 2.6.2