Skip to content

Commit

Permalink
Fix for VB
Browse files Browse the repository at this point in the history
  • Loading branch information
tats-u committed Mar 17, 2024
1 parent 6c6d441 commit 27b6fa5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,14 @@ ReturnBadExpression:
Return contents.AsEnumerable().Aggregate(Of BoundExpression)(
Nothing,
Function(left, right)
Dim modifiedRight = ConvertElementToConcatenationOperand(right, factory)
If left Is Nothing Then
Return ConvertElementToConcatenationOperand(left, factory)
Return modifiedRight
End If
Return RewriteConcatenateOperator(
factory.Binary(
BinaryOperatorKind.Concatenate,
factoryType, left,
ConvertElementToConcatenationOperand(right, factory)
factoryType, left, modifiedRight
)
)
End Function
Expand Down

0 comments on commit 27b6fa5

Please sign in to comment.