| Anonymous | Login | Signup for a new account | 2013-05-25 11:33 CEST | ![]() |
| All Projects | FPC | Lazarus: Packages, Patches | Lazarus CCR | Mantis | fpGUI | fpcprojects: fpprofiler |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0021926 | FPC | Compiler | public | 2012-05-03 04:03 | 2012-05-03 21:16 | ||||
| Reporter | Kouichi Tamiya | ||||||||
| Assigned To | Jonas Maebe | ||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||
| Status | resolved | Resolution | no change required | ||||||
| Platform | intel i7-2700K | OS | Windows | OS Version | Windows 7/ 64bit | ||||
| Product Version | 2.6.0 | Product Build | |||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0021926: inscription "left" issue. | ||||||||
| Description | first inscription "left" always produces Error: Duplicate identifier "Left". Neither Delphi2009 compiler nor inscription "Right" do not. | ||||||||
| Steps To Reproduce | In Lazarus IDE version #0.9.30.4 issued 2012-03-14, put Button1 and click it, declaratin integer varible, as follows: procedure TForm1.Button1Click(Sender: TObject); var left:integer; begin left:=0; end | ||||||||
| Tags | No tags attached. | ||||||||
| FPCOldBugId | |||||||||
| Fixed in Revision | |||||||||
| Attached Files | |||||||||
Notes |
|
|
(0059206) Marco van de Voort (manager) 2012-05-03 09:37 |
Do you use {$mode Delphi} or Lazarus' default {$mode objfpc} ? |
|
(0059220) Jonas Maebe (manager) 2012-05-03 21:16 |
That's because TForm is a descendent of TControl, and TControl has a property called "Left". FPC forbids hiding properties/fields using local variables or parameter names because that can easily lead to hard to find bugs. Compile in Delphi mode if you want Delphi-compatibility. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-05-03 04:03 | Kouichi Tamiya | New Issue | |
| 2012-05-03 09:37 | Marco van de Voort | Note Added: 0059206 | |
| 2012-05-03 09:37 | Marco van de Voort | Status | new => feedback |
| 2012-05-03 21:16 | Jonas Maebe | Status | feedback => resolved |
| 2012-05-03 21:16 | Jonas Maebe | Resolution | open => no change required |
| 2012-05-03 21:16 | Jonas Maebe | Assigned To | => Jonas Maebe |
| 2012-05-03 21:16 | Jonas Maebe | Note Added: 0059220 | |
| Main | My View | View Issues | Change Log | Roadmap |



