Menu

#171 Formatter bug with generics

Closed
closed-fixed
None
5
2022-09-28
2019-12-23
maf-soft
No

Installed 1.3.15, thanks :) - many formatting problems are now correct, but not all...

1.3.14 Result:= TryGet<string > (AResult);
1.3.15 Result:= TryGet < string > (AResult);

1.3.14 TMyClass = class(TMyBaseClass<string>)
1.3.15 TMyClass = class(TMyBaseClass < string > )
//above is only for <string>, and it happens all over the place in my code, also when calling generic functions

1.3.15 //indenting changed
  GetCharset(Result)['Symbols'].AsObj.AddObj(Key)
  .Add('Description', Descr, Descr <> '')
    .AddList('Images');

//im not sure if it makes sense to have 4 spaces indent here - maybe ok, it's because of the [], I can live with it
  Result:= Format(' %d %d ', [a,
      b]);

Discussion

  • maf-soft

    maf-soft - 2020-02-26

    Another one with too many spaces:
    TMy<T> = class abstract(TMy, IEquatable < TMy<T> > , IComparable < TMy<T> > )

     
  • Thomas Mueller

    Thomas Mueller - 2022-09-28
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2022-09-28

    fluent code indentation problem fixed in revision #3910
    Generics problems were already fixed in revision #3908 that fixed bug #281

     

Log in to post a comment.

MongoDB Logo MongoDB