FPC Compatibility

(Carlo Kok) #22

do you have a complete bit of code that fails on this?

It’s fixed for all I know.

0 Likes

(Matt Robertson) #23
namespace com.matt.tests;

interface

uses
  android.app, android.content, android.os, android.view, android.widget;

type
  Parent = public class
    public
      destructor Destroy;
  end;

type
  MainActivity = public class(Activity)
  public
    method onCreate(savedInstanceState: Bundle); override;
  end;

implementation

  method MainActivity.onCreate(savedInstanceState: Bundle);
  begin
    inherited;
    ContentView := R.layout.main;
  end;
  
  destructor Parent.Destroy;
  begin
  end;
end.

I’m not seeing the same “colon expected” error in the interface of this code sample, so I’m not sure what’s causing that in my main project. But I still get an error
"end." or implementation section members (types or methods) expected
in the implementation of destructor Parent.Destroy; and Water does not provide syntax highlighting for the keyword “destructor”.

com.matt.tests.zip (191.7 KB)

0 Likes

(RemObjects) #24

Thanks, logged as bugs://81843

0 Likes

(Carlo Kok) #25

ah yes. For some reason I had a perfectly working case, but yeah. Fixed. Logged an issue for Water for highlighting.

1 Like

(RemObjects) #26

bugs://81783 got closed with status fixed.

0 Likes

(RemObjects) #27

bugs://81779 got closed with status fixed.

0 Likes

(RemObjects) #28

bugs://81843 got closed with status fixed.

0 Likes