Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Q# namespaces with the same fully-qualified name as a callable or type produce invalid C# code #245

Description

This program is accepted by the Q# compiler:

namespace Foo {
    function Bar() : Unit { }
}

namespace Foo.Bar {
    function Hello() : Unit { }
}

But it produces this C# compile error:

obj\qsharp\src\Program.g.cs(26,26): error CS0101: The namespace "Foo" already contains a definition for "Bar".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions