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

using an empty namespace in a different assembly does not produce a helpfull error message #498

Open
gafter opened this issue Apr 24, 2017 · 1 comment
Labels

Comments

@gafter
Copy link
Member

gafter commented Apr 24, 2017

@pdelvo commented on Sat May 23 2015

Consider this code:

using Assembly2;

public class Class1
{
    static unsafe void Main()
    {
    }
}
namespace Assembly2
{
}

Both files have to be in different projects. When you try to compile it in VS or with msbuild, csc will just return error code 1. The problem is the using Assembly2 in the first file. The namespace Assembly2 is empty.


@gafter commented on Tue May 26 2015

@MadsTorgersen What does the language spec say about the existence of Assembly2? The compilers currently consider an imported namespace to exist only when it is nonempty.

@BillWagner
Copy link
Member

@MadsTorgersen Should this move to the dotnet/csharpstandard repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants