var name same as method name error
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
If a variable name has the same name
as the method, there is a "Error: Illegal expression"
Example:
TQDesktopWidget=class(TQWidget)
public
...
function screen(screen: Integer): QWidgetH;
...
this works in Kylix 3. With FPC I have to rename
the integer screen to screen_ for example.
Additional information:
Reporter: theo
EMail: nospam at for dot me
Mantis conversion info:
- Mantis ID: 5140
- OS: Linux
- Version: 1.9.3