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#: Incorrect qualification for field in anonymous object #480

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

VB -> C#: Incorrect qualification for field in anonymous object #480

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 Foo As Integer

    Sub Test()
        Dim x = New With {Foo}
    End Sub

End Class

Erroneous output

class A
{
    public int Foo;

    public void Test()
    {
        var x = new { Foo.Foo };
    }
}

Expected output

class A
{
    public int Foo;

    public void Test()
    {
        var x = new { Foo };
    }
}

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.