Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VB -> C#: Null coalescing operator misses parenthesis when left or right side is lambda #811

Closed
Yozer opened this issue Jan 11, 2022 · 0 comments · Fixed by #812
Closed
Labels
VB -> C# Specific to VB -> C# conversion

Comments

@Yozer
Copy link
Member

Yozer commented Jan 11, 2022

VB.Net input code

Dim test = If("", Function() 5)

Erroneous output

var test = "" ?? () => 5;

image

Expected output

var test = "" ?? (() => 5);

Details

  • Product in use: VS extension
  • Version in use: 8.4.4.0
  • Did you see it working in a previous version, which?
  • Any other relevant information to the issue, or your interest in contributing a fix.
    I will create PR with a fix.
@Yozer Yozer added the VB -> C# Specific to VB -> C# conversion label Jan 11, 2022
@Yozer Yozer mentioned this issue Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VB -> C# Specific to VB -> C# conversion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant