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

@bamarsha

Description

@bamarsha

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".

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