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
{{ message }}
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
namespace Program {
@EntryPoint()
function Main() : Unit {
FooBar.Baz();
Foo.Bar.Baz();
}
}
namespace FooBar {
function Baz() : Unit { }
}
namespace Foo.Bar {
function Baz() : Unit { }
}
This produces a C# compile error:
obj\qsharp\src\Program.g.cs(105,43): error CS0102: The type "Main" already contains a definition for "FooBarBaz".
The problem is that C# generation creates properties in the containing callable's generated class for both of them, but it strips out dots from their fully-qualified names, so they end up with the same name: