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

C# -> VB: Return default converts to "default" #428

Closed
HugoRoss opened this issue Nov 17, 2019 · 2 comments
Closed

C# -> VB: Return default converts to "default" #428

HugoRoss opened this issue Nov 17, 2019 · 2 comments
Labels
C# -> VB Specific to C# -> VB conversion compilation error A bug where the converted output won't compile Small Estimated less than 4 hours work

Comments

@HugoRoss
Copy link

Input code

 int? foo = default;

Erroneous output

Dim foo As Integer? = "default"

Expected output

Dim foo As Integer? = Nothing

Details

@HugoRoss
Copy link
Author

(or also just Dim foo As Integer? instead of Dim foo As Integer? = Nothing as there are no unassigned variables in VB.NET)

@GrahamTheCoder GrahamTheCoder added C# -> VB Specific to C# -> VB conversion compilation error A bug where the converted output won't compile labels Nov 17, 2019
@GrahamTheCoder GrahamTheCoder changed the title C# -> VB: int? foo = default; C# -> VB: Return default converts to "default" Jan 13, 2020
@GrahamTheCoder GrahamTheCoder added the Small Estimated less than 4 hours work label Mar 8, 2020
@Saibamen
Copy link
Contributor

Fixed in release 8.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# -> VB Specific to C# -> VB conversion compilation error A bug where the converted output won't compile Small Estimated less than 4 hours work
Projects
None yet
Development

No branches or pull requests

3 participants