<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Michael Van Canneyt via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am So., 13. Feb. 2022, 09:47:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Sun, 13 Feb 2022, Mattias Gaertner via fpc-pascal wrote:<br>
<br>
> On Sat, 12 Feb 2022 12:14:14 +0100 (CET)<br>
> Michael Van Canneyt via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>><br>
> wrote:<br>
><br>
>> On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pascal wrote:<br>
>> <br>
>> > Hi,<br>
>> ><br>
>> > This can't be right, can it?<br>
>> ><br>
>> > type<br>
>> > TBird = class<br>
>> > procedure Fly;<br>
>> > end;<br>
>> > TEagle = TBird; // alias<br>
>> ><br>
>> > procedure TEagle.Fly;<br>
>> > begin<br>
>> > end; <br>
>> <br>
>> Personally, I would not allow this. <br>
>> But Delphi compiles and runs it...<br>
><br>
> ... and Delphi's class completion no longer works in the unit giving a<br>
> useless error "expected ';' but '.' found". So it is one of those<br>
> Delphi "features" compiling but not usable.<br>
<br>
I'm all for forbidding this in objfpc mode.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Then file a bug report for it. Cause it's definitely going to be one of the low priority things cause it's going to be annoying to fix... </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>