You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Assembly2;publicclassClass1{staticunsafevoidMain(){}}
namespaceAssembly2{}
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.
@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.
The text was updated successfully, but these errors were encountered:
@pdelvo commented on Sat May 23 2015
Consider this code:
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.The text was updated successfully, but these errors were encountered: