Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,35 @@ class MyClass
]
)]
class ClassName { }

class CastExpressions
{
void MethodName()
{
var x = (string[])[someValue, someValue];

var x = (string[])
[longValue________________________________, longValue________________________________];

var x = (string[])
[
longerValue_____________________________________________,
longerValue_____________________________________________,
];

CallMethod((string[])[someValue, someValue]);

CallMethod(
(string[])
[longValue______________________________, longValue______________________________]
);

CallMethod(
(string[])
[
longerValue_____________________________________________,
longerValue_____________________________________________,
]
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public static Doc Print(CollectionExpressionSyntax node, FormattingContext conte
is ArgumentSyntax { NameColon: null }
or AttributeArgumentSyntax
or ArrowExpressionClauseSyntax
or CastExpressionSyntax
or ExpressionElementSyntax
or SimpleLambdaExpressionSyntax
or AssignmentExpressionSyntax
Expand Down