<div dir="ltr">Hello,<div><br></div><div>First, please test the code below in Delphi and after in FPC:</div><div><br></div><div><div> TTest = class</div><div> public</div><div> class constructor Create;</div><div> constructor Create; virtual;</div><div> end;</div><div>...</div><div><div>constructor TTest.Create;</div><div>begin</div><div>end;</div><div><br></div><div>class constructor TTest.Create;</div><div>begin</div><div>end;</div></div><div><br></div><div>OK, it will compile fine. Now test the code below in Delphi and after in FPC (just changing the declaration order of the methods):</div><div><br></div><div><div> TTest = class</div><div> public</div><div> constructor Create; virtual;</div><div> class constructor Create;</div><div> end;</div></div><div>...</div><div><div>constructor TTest.Create;</div><div>begin</div><div>end;</div><div><br></div><div>class constructor TTest.Create;</div><div>begin</div><div>end;</div></div><div><br></div><div>In Delphi it compile fine, but in FPC:</div><div><br></div><div>=======</div><div><div>Compile Project, Target: project1.exe: Exit code 1, Errors: 1, Warnings: 1</div><div>unit1.pas(23,23) Warning: An inherited method is hidden by "class constructor Create;"</div><div>unit1.pas(39,25) Error: method identifier expected</div></div><div>=======</div><div><br></div><div>Bug?</div><div><br></div>-- <br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>