Menu

#133 Code formatter does not support the "Final" keyword

Closed
closed-fixed
None
5
2019-09-01
2019-08-25
No

The code formatter does not know the Final keyword (which can be placed after virtual, dynamic or override to prevent further overriding of that method). It always inserts a line break before it which is wrong.

type
  TMyThread = class(TThread)
  protected
    procedure Execute; override; final;
  end;

is formatted to

type
  TMyThread = class(TThread)
  protected
    procedure Execute; override;
    final;
  end;

Discussion

  • Thomas Mueller

    Thomas Mueller - 2019-09-01
    • summary: Code formatter does know know the Final keyword --> Code formatter does support the "Final" keyword
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2019-09-01

    fixed in revision #2716

     
  • Thomas Mueller

    Thomas Mueller - 2019-09-01
    • summary: Code formatter does support the "Final" keyword --> Code formatter does not support the "Final" keyword
     

Log in to post a comment.

MongoDB Logo MongoDB