Skip to content

Commit

Permalink
Fixing nested fixed statements
Browse files Browse the repository at this point in the history
closes #438
  • Loading branch information
belav committed Sep 20, 2021
1 parent 0c694e1 commit d419775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ class ClassName
) {
return;
}

fixed (char* pSrcBegin = text)
fixed (char* pDstBegin = _bufChars)
{
char* pSrc = pSrcBegin;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static Doc Print(FixedStatementSyntax node)
),
node.Statement is BlockSyntax blockSyntax
? Block.PrintWithConditionalSpace(blockSyntax, groupId)
: Node.Print(node.Statement)
: Doc.Concat(Doc.HardLine, Node.Print(node.Statement))
);
}
}
Expand Down

0 comments on commit d419775

Please sign in to comment.