Menu

#134 Formatter does not handle variant records with methods correctly

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

The code formatter doesn't align lines correct for record case statements if the record has functions/procedures i.e.

record
  procedure Test;
  case Byte of
      1:
        (CoOrd: TCoOrd_Array);
      2:
        (x: Double;
          y: Double;
          z: Double);
  end;

It treats the end as the end of the case statement and not the end of the record.

All subsequent code is aligned incorrectly

(submitted via email by Rob Truby)

Discussion

  • Thomas Mueller

    Thomas Mueller - 2019-09-01
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2019-09-01

    fixed in revision #2717

     

Log in to post a comment.

MongoDB Logo MongoDB