<div dir="ltr">Hello,<div><br></div><div>Consider the following code:</div><div><br></div><div>=== test begin ===</div><div><br></div><div>{$MODE DELPHI}<br></div><div><br></div><div><div> TStaticVirtualTest = class sealed(TObject)</div><div> public</div><div> class procedure Test; virtual; static;</div><div> end;</div></div><div><br></div><div><div>class procedure TStaticVirtualTest.Test;</div><div>begin</div><div>end;</div></div><div><br></div><div>=== test end ===<br clear="all"><div><br></div><div>You can compile it in FPC (trunk), but, when you try to compile it on Delphi (Seattle):</div><div><br></div><div>=== error begin ===</div><div><br></div><div>E2376 STATIC can only be used on non-virtual class methods<br></div><div><br></div><div>=== error end ===<br></div><div><br></div><div>Is this a FPC bug?</div><div><br></div><div>Thank you!</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>