Skip to content

Namespaces for types don't work #423

Closed
@vgrichina

Description

@vgrichina

See https://studio.nearprotocol.com/?f=XfZ2mUv for working example.

Basically if you have:

namespace Outer {
  export class Inner {

  }
}

it doesn't look that any references to Inner actually work.

E.g. none of these compile so far:

let cannotDeclareVariable: Outer.Inner = null;

function cannotReturn(): Outer.Inner {
}

function cannotTakeAargument(arg: Outer.Inner): void {
}

Do you have any suggestion on how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions