Error(E1) semicolon (;) expected, got "implements"

Dear Team,

I am facing error -->
Error (E1) semicolon (:wink: expected, got “implements”

 {$IFDEF DELPHI}
 property RowList: IList read get_RowList  implements IList;  // Error Line
{$ELSE}
 property RowList: IList read _rowList;
{$ENDIF}

For more details kindly find attached project.InterfaceImplementation.zip (30.2 KB)

Thanks,

Thanks, logged as bugs://84797

Shouldn’t there be a ; before implements?

We tried same but same error.

this compiles fine for me:

namespace InterfaceImplementation;

interface

uses
  System.Collections,
  System.Linq;

type
  Program =  class(
    Object,
     IList  )
  private
     var _rowList :IList; implements IList; // H8 Field "_rowList" defined in type "Program" is never assigned
    method get_RowsList: IList;
  public
    {$IFDEF DELPHI}
     xx: StringXXX;
     property RowList: IList read get_RowList; implements IList;
    {$ELSE}
     property RowList: IList read _rowList;
    {$ENDIF}
 
    class method Main(args: array of String): Int32;
  end;

implementation

class method Program.Main(args: array of String): Int32;
begin
  // add your own code here
  writeLn('The magic happens here.');
end;

method Program.get_RowsList: IList;
begin

end;
 

end.

What build are you using? and of not 2339, can you try updating?

bugs://84797 got closed with status testcaseerr.

On adding ; its working in visual studio but same code in Delphi(Not accepting “;”) not working.
So I added {$IFDEF DELPHI} to ignore but its giving error.

I am using latest stable version on ( RemObjects Elements with Water - 10.0.0.2525).

Thanks,

Hmm, so Delphi required it without semicolon?

Yes, In Delphi it requires.

bugs://84797 got reopened.

bugs://84797 got closed with status fixed.