Skip to content

Commit

Permalink
Making sure array ranks will break
Browse files Browse the repository at this point in the history
closes #353
  • Loading branch information
belav committed Jul 19, 2021
1 parent 0ba7ac1 commit 95210fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ class ClassName

int[] array = new int[5];

var anArray = new int[5, 10];

var aLongArray_________________________________________________________________________ =
new int[5, 10];

var anArrayWithLongRanks = new byte[
someReallyLongThing__________________________,
someReallyLongThing__________________________
];

private static readonly char[] initializerIndents = new char[]
{
Path.DirectorySeparatorChar,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static Doc Print(ArrayRankSpecifierSyntax node)
? Doc.Concat(
Doc.Indent(
Doc.SoftLine,
SeparatedSyntaxList.Print(node.Sizes, Node.Print, Doc.Null)
SeparatedSyntaxList.Print(node.Sizes, Node.Print, Doc.Line)
),
Doc.SoftLine
)
Expand Down

0 comments on commit 95210fb

Please sign in to comment.