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#: Built in methods not converted when argument is unknown type #481

Open
mrmonday opened this issue Jan 6, 2020 · 0 comments
Open

VB -> C#: Built in methods not converted when argument is unknown type #481

mrmonday opened this issue Jan 6, 2020 · 0 comments
Labels

Comments

@mrmonday
Copy link
Contributor

@mrmonday mrmonday commented Jan 6, 2020

Input code

Class A
    Public Sub Test()
        Dim x As Asadf = Nothing
        Dim y As Integer = 3
        If IsNothing(x) OrElse IsNothing(y) Then

        End If
    End Sub
End Class

Erroneous output

using Microsoft.VisualBasic;

class A
{
    public void Test()
    {
        Asadf x = null;
        int y = 3;
        if (IsNothing(x) || Information.IsNothing(y))
        {
        }
    }
}

Expected output

using Microsoft.VisualBasic;

class A
{
    public void Test()
    {
        Asadf x = null;
        int y = 3;
        if (Information.IsNothing(x) || Information.IsNothing(y))
        {
        }
    }
}

Details

Using master @ dadc812

@mrmonday mrmonday added the VB -> C# label Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.