Skip to content

namespace, splitting across files #13341

@DingWeizhe

Description

@DingWeizhe

TypeScript Version: Version 2.1.4

code
Animates.Dogs.ts

export namespace Animates {
  export namespace Dogs {
    export class SmallDog {
      
    }
  }
}

Animates.Dogs.SmallBreeds.ts

/// <reference path="./Animates.Dogs.ts" />

export namespace Animates {
  export namespace Dogs {
    export class Chihuahua extends Animates.Dogs.SmallDog {}
  }
}

Expected behavior:
Chihuahua is kind of SmallDog

Actual behavior:

Animates.Dogs.SmallBreeds.ts(5,53): error TS2694: Namespace '"Animates.Dogs.SmallBreeds".Animates.Dogs' has no exported member 'SmallDog'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions