We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcdb0d1 commit bec2a49Copy full SHA for bec2a49
CodeConverter/Common/DocumentExtensions.cs
@@ -52,7 +52,7 @@ private static bool CsWouldBeSimplifiedIncorrectly(SyntaxNode n)
52
{
53
//"private int value = unchecked((int)0x80000010);" is simplified to "private int value = unchecked(0x80000010);"
54
// which causes CS0266: "Cannot implicitly convert type 'uint' to 'int'"
55
- return (n is CSSyntax.CastExpressionSyntax && n.Parent is CSSyntax.CheckedExpressionSyntax);
+ return (n is CSSyntax.CastExpressionSyntax { Parent : CSSyntax.CheckedExpressionSyntax });
56
}
57
58
public static async Task<Document> WithExpandedRootAsync(this Document document, CancellationToken cancellationToken)
0 commit comments