<div dir="ltr">I've tried to unify some Lazarus and D7 sources and succeeded except for one thing:<div><br></div><div><font face="monospace, monospace">TYPE TMyForm = CLASS(TForm)</font></div><div><div><font face="monospace, monospace">    {$IFDEF FPC}</font></div></div><div><font face="monospace, monospace">         SomePage: TPage;</font></div><div><div><font face="monospace, monospace">    {$ENDIF}</font></div></div><div><span style="font-family:monospace,monospace">END;</span><br></div><br>Delphi parses it wrongly and always offers to remove the declaration.<div><font face="monospace, monospace"><br></font></div><div>I don't need the declaration in L, but removing it led to a class not found error.<font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div>While in LFM the form looks like</div><div><br></div><div><div><font face="monospace, monospace">object SomeBook: TNotebook</font></div></div><div><div><font face="monospace, monospace">    object SomePage: TPage</font></div></div><div><font face="monospace, monospace">    end;</font></div><div><font face="monospace, monospace">end;</font></div><div><br>there's just</div><div><br><span style="font-family:monospace,monospace">object SomeBook: TNotebook</span><br></div><div><div><font face="monospace, monospace">    object TPage</font></div><div><font face="monospace, monospace">    end;</font></div><div><font face="monospace, monospace">end;</font></div></div><br>in Delphi. I modified it to look like L, but it changed nothing.<div><br></div><div>Any idea?</div></div>