Compiler hint is not correct with overloaded procedure from other unit
Original Reporter info from Mantis: User137
-
Reporter name: Teemu Valo
Original Reporter info from Mantis: User137
- Reporter name: Teemu Valo
Description:
I have 2 units: nxMath and nxMath3D. Both have (with different parameters)
function Angle(...); overload;
Now i'm in code of nxMath3D which in some other function calls Angle from nxMath, therefore i must put nxMath in uses clause. Compiler however thinks that it's useless because there already exists Angle() in the same unit. Ok i remove it from uses clause and i get a compiler error of Angle() is not found, as expected.
The erroneous compiler hint was "Hint: Unit "nxMath" not used in nxMath3D".
Additional information:
The functions are defined like:
nxMath:
function Angle(const px1,py1,px2,py2: single): single; overload;
function Angle(src,dest: single): single; overload;
nxMath3D:
function Angle(const v1,v2: TVector; axis: integer): single; overload;
Mantis conversion info:
- Mantis ID: 15966
- OS: Windows XP
- OS Build: SP2
- Platform: Win32
- Version: 2.4.1
- Fixed in version: 3.0.0
- Fixed in revision: 21501 (#9412d4ab)
- Monitored by: » User137 (Teemu Valo)