Menu

#386 C# `foreach` + cast produces incorrect unpadding.

closed-fixed
None
2017-04-11
2016-01-04
Jon Frisby
No

When enabling unpad-paren, this:

public class Foo {
  public void foo() {
    foreach(object item in (IEnumerable)things)
      DoStuff(item);
  }
}

... will be formatted to this:

public class Foo {
  public void foo() {
    foreach(object item in(IEnumerable)things)
      DoStuff(item);
  }
}

Discussion

  • Jim Pattee

    Jim Pattee - 2017-02-22
    • status: open --> open-fixed
    • assigned_to: Jim Pattee
     
  • Jim Pattee

    Jim Pattee - 2017-02-22

    Fixed.

     
  • Jim Pattee

    Jim Pattee - 2017-04-09
    • status: open-fixed --> closed-fixed
     
  • Jon Frisby

    Jon Frisby - 2017-04-11

    Thank you!

     

Log in to post a comment.