FPC Compatibility

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

It’s fixed for all I know.

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)

Thanks, logged as bugs://81843

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

1 Like

bugs://81783 got closed with status fixed.

bugs://81779 got closed with status fixed.

bugs://81843 got closed with status fixed.