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#: Module with same name as method #420

Open
mrmonday opened this issue Nov 14, 2019 · 0 comments
Open

VB -> C#: Module with same name as method #420

mrmonday opened this issue Nov 14, 2019 · 0 comments

Comments

@mrmonday
Copy link
Contributor

@mrmonday mrmonday commented Nov 14, 2019

Input code

Module Main
    Sub Main()
    End Sub
End Module

Erroneous output

static class Main
{
    public static void Main()
    {
    }
}

Expected output

Unsure, perhaps:

static class MainModule
{
    public static void Main()
    {
    }
}

Details

  • Version in use: 7.3.0

Gives:

error CS0542: 'Main': member names cannot be the same as their enclosing type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.